Initial Commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
# Exclude bpm archives
|
||||||
|
*.bpm
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Gitlab repository
|
||||||
|
REPO="GNOME/gnome-online-accounts"
|
||||||
|
|
||||||
|
# Replace slash with URL encoded representation
|
||||||
|
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
|
||||||
|
|
||||||
|
# Get tag name using Gitlab Rest API
|
||||||
|
TAG_NAME=$(curl -s -L https://gitlab.gnome.org/api/v4/projects/"$REPO"/releases/permalink/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
echo "$TAG_NAME"
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
name: gnome-online-accounts
|
||||||
|
description: single sign-on framework for GNOME
|
||||||
|
version: 3.56.0
|
||||||
|
revision: 1
|
||||||
|
url: https://wiki.gnome.org/Projects/GnomeOnlineAccounts
|
||||||
|
license: LGPL2-or-later
|
||||||
|
architecture: any
|
||||||
|
type: source
|
||||||
|
make_depends:
|
||||||
|
- dbus
|
||||||
|
- gcr4
|
||||||
|
- glib
|
||||||
|
- gtk4
|
||||||
|
- json-glib
|
||||||
|
- keyutils
|
||||||
|
- krb5
|
||||||
|
- libadwaita
|
||||||
|
- librest
|
||||||
|
- libsecret
|
||||||
|
- libsoup
|
||||||
|
- libxml2
|
||||||
|
- gobject-introspection
|
||||||
|
- meson
|
||||||
|
- vala
|
||||||
|
downloads:
|
||||||
|
- url: https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/archive/${BPM_PKG_VERSION}/gnome-online-accounts-${BPM_PKG_VERSION}.tar.gz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: 4ea45d437f0f68dd53924631b192499a99a9f7a918352877b55402bb4ccb80cb
|
||||||
|
split_packages:
|
||||||
|
- name: gnome-online-accounts
|
||||||
|
depends:
|
||||||
|
- dbus
|
||||||
|
- gcc-libs
|
||||||
|
- gcr4
|
||||||
|
- glib
|
||||||
|
- glibc
|
||||||
|
- gtk4
|
||||||
|
- hicolor-icon-theme
|
||||||
|
- json-glib
|
||||||
|
- keyutils
|
||||||
|
- krb5
|
||||||
|
- libadwaita
|
||||||
|
- name: libgoa
|
||||||
|
description: Client library for gnome-online-accounts
|
||||||
|
depends:
|
||||||
|
- glib
|
||||||
|
- glibc
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
|
||||||
|
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
||||||
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
|
# The build function is executed in the source directory
|
||||||
|
# This function is used to compile the source code
|
||||||
|
build() {
|
||||||
|
meson setup build --prefix=/usr --buildtype=release -Ddocumentation=false
|
||||||
|
meson compile -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
# The package function is executed in the source directory
|
||||||
|
# This function is used to move the compiled files into the output directory
|
||||||
|
package_gnome-online-accounts() {
|
||||||
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
|
# Move libgoa files into split package
|
||||||
|
install -d "$BPM_WORKDIR"/output_libgoa/usr/{include/goa-1.0,lib/girepository-1.0,lib/goa-1.0,lib/pkgconfig,share/gir-1.0,share/vala/vapi}
|
||||||
|
mv "$BPM_OUTPUT"/usr/include/goa-1.0/goa "$BPM_WORKDIR"/output_libgoa/usr/include/goa-1.0/goa
|
||||||
|
mv "$BPM_OUTPUT"/usr/lib/libgoa-1.0.so* -t "$BPM_WORKDIR"/output_libgoa/usr/lib/
|
||||||
|
mv "$BPM_OUTPUT"/usr/lib/girepository-1.0/Goa-1.0.typelib "$BPM_WORKDIR"/output_libgoa/usr/lib/girepository-1.0/Goa-1.0.typelib
|
||||||
|
mv "$BPM_OUTPUT"/usr/lib/goa-1.0/include "$BPM_WORKDIR"/output_libgoa/usr/lib/goa-1.0/include
|
||||||
|
mv "$BPM_OUTPUT"/usr/lib/pkgconfig/goa-1.0.pc "$BPM_WORKDIR"/output_libgoa/usr/lib/pkgconfig/goa-1.0.pc
|
||||||
|
mv "$BPM_OUTPUT"/usr/share/gir-1.0/Goa-1.0.gir "$BPM_WORKDIR"/output_libgoa/usr/share/gir-1.0/Goa-1.0.gir
|
||||||
|
mv "$BPM_OUTPUT"/usr/share/vala/vapi/goa-1.0.* -t "$BPM_WORKDIR"/output_libgoa/usr/share/vala/vapi/
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gnome-online-accounts/COPYING
|
||||||
|
}
|
||||||
|
|
||||||
|
package_libgoa() {
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gnome-online-accounts/COPYING
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user