summaryrefslogtreecommitdiffstats
path: root/main/glib
diff options
context:
space:
mode:
Diffstat (limited to 'main/glib')
-rw-r--r--main/glib/APKBUILD4
-rw-r--r--main/glib/glib.trigger11
2 files changed, 12 insertions, 3 deletions
diff --git a/main/glib/APKBUILD b/main/glib/APKBUILD
index 7a8cd742a..66c79c7cf 100644
--- a/main/glib/APKBUILD
+++ b/main/glib/APKBUILD
@@ -1,12 +1,12 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=glib
pkgver=2.26.0
-pkgrel=1
+pkgrel=2
pkgdesc="Common C routines used by Gtk+ and other libs"
url="http://www.gtk.org"
license='GPL'
depends=
-triggers="$pkgname.trigger:/usr/share/glib-2.0/schemas"
+triggers="$pkgname.trigger:/usr/share/glib-2.0/schemas /usr/lib/gio/modules"
makedepends="gettext-dev libiconv-dev zlib-dev bzip2-dev pkgconfig"
source="http://ftp.gnome.org/pub/gnome/sources/glib/${pkgver%.*}/glib-$pkgver.tar.bz2"
subpackages="$pkgname-doc $pkgname-dev"
diff --git a/main/glib/glib.trigger b/main/glib/glib.trigger
index 181878d06..04b9f5bd4 100644
--- a/main/glib/glib.trigger
+++ b/main/glib/glib.trigger
@@ -1,4 +1,13 @@
#!/bin/sh
-/usr/bin/glib-compile-schemas "$@"
+for i in "$@"; do
+ case "$i" in
+ */modules)
+ /usr/bin/gio-querymodules "$i"
+ ;;
+ */schemas)
+ /usr/bin/glib-compile-schemas "$i"
+ ;;
+ esac
+done