diff --git a/pkg.info b/pkg.info index 04fb9ae..fd012f5 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,37 @@ name: gtk2 description: GObject-based multi-platform GUI toolkit version 2 version: 2.24.33 -revision: 2 +revision: 3 url: https://www.gtk.org/ license: LGPL2.1-or-later +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["at-spi2-core","cairo","fontconfig","gdk-pixbuf","glib","glibc","gtk-update-icon-cache","libx11","libxcomposite","libxcursor","libxdamage","libxext","libxfixes","libxi","libxinerama","libxrandr","libxrender","pango","shared-mime-info"] -make_depends: ["gobject-introspection"] type: source +depends: + - at-spi2-core + - cairo + - fontconfig + - gdk-pixbuf + - glib + - glibc + - gtk-update-icon-cache + - libx11 + - libxcomposite + - libxcursor + - libxdamage + - libxext + - libxfixes + - libxi + - libxinerama + - libxrandr + - libxrender + - pango + - shared-mime-info +make_depends: + - gobject-introspection +downloads: + - url: https://download.gnome.org/sources/gtk+/${BPM_PKG_VERSION%.*}/gtk+-${BPM_PKG_VERSION}.tar.xz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: ac2ac757f5942d318a311a54b0c80b5ef295f299c2a73c632f6bfb1ff49cc6da diff --git a/pre_remove.sh b/pre_remove.sh index 6000b92..14691d4 100644 --- a/pre_remove.sh +++ b/pre_remove.sh @@ -1,3 +1,3 @@ -#!/bin/bash +#!/bin/sh -rm -f "$BPM_ROOT"/usr/lib/gtk-2.0/2.10.0/immodules.cache +rm -f /usr/lib/gtk-2.0/2.10.0/immodules.cache diff --git a/source-files/gtk2-query-immodules.bpmhook b/source-files/gtk2-query-immodules.bpmhook index 5550aeb..56dde9a 100644 --- a/source-files/gtk2-query-immodules.bpmhook +++ b/source-files/gtk2-query-immodules.bpmhook @@ -1,5 +1,3 @@ -trigger_operations: ["install", "upgrade", "remove"] -target_type: "path" +trigger_actions: ["install", "upgrade", "remove"] targets: ["usr/lib/gtk-2.0/2.10.0/immodules/*.so"] -depends: ["gtk2"] run: "/usr/bin/gtk-query-immodules-2.0 --update-cache" diff --git a/source.sh b/source.sh index 36cd0da..7c2ae8f 100644 --- a/source.sh +++ b/source.sh @@ -2,16 +2,6 @@ # 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() {