From a38a676d2703207a28f91aac8dccfb32fe9d285c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 9 Oct 2010 13:33:19 +0000 Subject: main/glib: trigger for gio modules --- main/glib/APKBUILD | 4 ++-- main/glib/glib.trigger | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'main/glib') 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 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 -- cgit v1.2.3