Initial Commit

This commit is contained in:
2025-05-08 17:14:10 +03:00
commit 60a3ca4511
4 changed files with 49 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
name: gtk2
description: GObject-based multi-platform GUI toolkit version 2
version: 2.24.33
url: https://www.gtk.org/
license: LGPL2.1-or-later
architecture: any
depends: ["at-spi2-core","cairo","fontconfig","gdk-pixbuf","glib","glibc","libx11","libxcomposite","libxcursor","libxdamage","libxext","libxfixes","libxi","libxinerama","libxrandr","libxrender","pango","shared-mime-info"]
make_depends: ["gobject-introspection"]
type: source
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
rm -f "$BPM_ROOT"/usr/lib/gtk-2.0/2.10.0/immodules.cache
@@ -0,0 +1,5 @@
trigger_operations: ["install", "upgrade", "remove"]
target_type: "path"
targets: ["usr/lib/gtk-2.0/2.10.0/immodules/*.so"]
depends: ["gtk2"]
run: "/usr/bin/gtk-query-immodules-2.0 --update-cache"
+32
View File
@@ -0,0 +1,32 @@
# 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
DOWNLOAD="https://download.gnome.org/sources/gtk+/${BPM_PKG_VERSION%.*}/gtk+-${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
# This function is used to compile the source code
build() {
sed -e 's#l \(gtk-.*\).sgml#& -o \1#' -i docs/{faq,tutorial}/Makefile.in
./configure --prefix=/usr --sysconfdir=/etc
make
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" install
install -Dm644 "$BPM_WORKDIR"/*.bpmhook -t "$BPM_OUTPUT"/var/lib/bpm/hooks/
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/gtk2/COPYING
}