Compare commits

...
19 Commits
7 changed files with 41 additions and 43 deletions
+3
View File
@@ -0,0 +1,3 @@
# Ignore BPM archives and signatures
*.bpm
*.bpm.sig
+1 -1
View File
@@ -7,7 +7,7 @@ REPO="GNOME/glib"
REPO=$(echo "$REPO" | sed 's|/|%2F|g') REPO=$(echo "$REPO" | sed 's|/|%2F|g')
# Get tag name using Gitlab Rest API # 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') TAG_NAME=$(curl -s -L https://gitlab.gnome.org/api/v4/projects/"$REPO"/releases | jq -r '.[].tag_name' | sort -V | tail -n1)
# Trim 'v' character in TAG_NAME variable # Trim 'v' character in TAG_NAME variable
VERSION=$(echo "$TAG_NAME" | tr -d 'v') VERSION=$(echo "$TAG_NAME" | tr -d 'v')
+33
View File
@@ -0,0 +1,33 @@
name: glib
description: Low-level core library
version: 2.90.0
revision: 1
url: https://gitlab.gnome.org/GNOME/glib
license: LGPL2.1-or-later
maintainers:
- [email protected]
architecture: any
type: source
depends:
- bash
- glibc
- libffi
- pcre2
- util-linux
- zlib
make_depends:
- dbus
- gettext
- gi-docgen
- gobject-introspection
- libelf
- meson
- python3=3.14.*
- python-docutils
- python-packaging
- shared-mime-info
downloads:
- url: https://download.gnome.org/sources/glib/${BPM_PKG_VERSION%.*}/glib-${BPM_PKG_VERSION}.tar.xz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 17d15cac2af80a33271127408e0abc2748eb297c595c2a26409e81e14e7d1b8f
-24
View File
@@ -1,24 +0,0 @@
name: glib
description: Low-level core library
version: 2.86.1
revision: 1
url: https://gitlab.gnome.org/GNOME/glib
license: LGPL2.1-or-later
architecture: any
type: source
depends:
- bash
- glibc
- libffi
- pcre2
- util-linux
- zlib
make_depends:
- dbus
- gettext
- gobject-introspection
- libelf
- meson
- python3
- python-packaging
- shared-mime-info
+2 -12
View File
@@ -1,21 +1,11 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package # This is the recipe.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 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 # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://download.gnome.org/sources/glib/${BPM_PKG_VERSION%.*}/glib-${BPM_PKG_VERSION}.tar.xz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
}
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release build meson setup --prefix=/usr --libdir=/usr/lib --buildtype=release -Ddocumentation=true build
meson compile -C build meson compile -C build
} }
+1 -3
View File
@@ -1,5 +1,3 @@
trigger_operations: ["install", "upgrade", "remove"] trigger_actions: ["install", "upgrade", "remove"]
target_type: "path"
targets: ["usr/lib/gio/modules/*.so"] targets: ["usr/lib/gio/modules/*.so"]
depends: ["glib"]
run: "/usr/bin/gio-querymodules /usr/lib/gio/modules" run: "/usr/bin/gio-querymodules /usr/lib/gio/modules"
+1 -3
View File
@@ -1,5 +1,3 @@
trigger_operations: ["install", "upgrade", "remove"] trigger_actions: ["install", "upgrade", "remove"]
target_type: "path"
targets: ["usr/share/glib-2.0/schemas/*.xml","usr/share/glib-2.0/schemas/*.override"] targets: ["usr/share/glib-2.0/schemas/*.xml","usr/share/glib-2.0/schemas/*.override"]
depends: ["glib"]
run: "/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas" run: "/usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas"