From c4de622babd22bc94a83333b9814d27b60ca1226 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 11 Oct 2025 15:54:41 +0300 Subject: [PATCH] Initial Commit --- .gitignore | 2 ++ check-version.sh | 12 ++++++++++++ pkg.info | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ source.sh | 34 ++++++++++++++++++++++++++++++++++ 4 files changed, 96 insertions(+) create mode 100644 .gitignore create mode 100644 check-version.sh create mode 100644 pkg.info create mode 100644 source.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..a05ca4c --- /dev/null +++ b/check-version.sh @@ -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" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..c63c23f --- /dev/null +++ b/pkg.info @@ -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 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..123df50 --- /dev/null +++ b/source.sh @@ -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 +}