Date: Wednesday, April 27, 2016 @ 13:49:34 Author: allan Revision: 266207
upgpkg: glib2 2.48.0-2 add gio-querymodules and glib-compile-schemes hooks Added: glib2/trunk/gio-querymodules.hook glib2/trunk/glib-compile-schemes.hook Modified: glib2/trunk/PKGBUILD ---------------------------+ PKGBUILD | 10 +++++++++- gio-querymodules.hook | 11 +++++++++++ glib-compile-schemes.hook | 12 ++++++++++++ 3 files changed, 32 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2016-04-27 11:04:57 UTC (rev 266206) +++ PKGBUILD 2016-04-27 11:49:34 UTC (rev 266207) @@ -4,14 +4,18 @@ pkgbase=glib2 pkgname=(glib2 glib2-docs) pkgver=2.48.0 -pkgrel=1 +pkgrel=2 pkgdesc="Common C routines used by GTK+ and other libs" url="http://www.gtk.org/" arch=(i686 x86_64) makedepends=('pkg-config' 'python' 'libxslt' 'docbook-xml' 'pcre' 'libffi' 'libelf') source=(http://ftp.gnome.org/pub/GNOME/sources/glib/${pkgver:0:4}/glib-$pkgver.tar.xz + glib-compile-schemes.hook + gio-querymodules.hook revert-warn-glib-compile-schemas.patch) sha256sums=('744be6931ca914c68af98dc38ff6b0cf8381d65e335060faddfbf04c17147c34' + 'e1123a5d85d2445faac33f6dae1085fdd620d83279a4e130a83fe38db52b62b3' + '5ba204a2686304b1454d401a39a9d27d09dd25e4529664e3fd565be3d439f8b6' '049240975cd2f1c88fbe7deb28af14d4ec7d2640495f7ca8980d873bb710cc97') prepare() { @@ -49,6 +53,10 @@ # Our gdb does not ship the required python modules, so remove it rm -rf "$pkgdir/usr/share/gdb/" + + # install hooks + install -dm755 "$pkgdir"/usr/share/libalpm/hooks/ + install -m644 "$srcdir"/{glib-compile-schemes,gio-querymodules}.hook "$pkgdir"/usr/share/libalpm/hooks/ } package_glib2-docs() { Added: gio-querymodules.hook =================================================================== --- gio-querymodules.hook (rev 0) +++ gio-querymodules.hook 2016-04-27 11:49:34 UTC (rev 266207) @@ -0,0 +1,11 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Operation = Remove +Target = usr/lib/gio/modules/*.so + +[Action] +Description = Updating GIO module cache... +When = PostTransaction +Exec = /usr/bin/gio-querymodules /usr/lib/gio/modules Added: glib-compile-schemes.hook =================================================================== --- glib-compile-schemes.hook (rev 0) +++ glib-compile-schemes.hook 2016-04-27 11:49:34 UTC (rev 266207) @@ -0,0 +1,12 @@ +[Trigger] +Type = File +Operation = Install +Operation = Upgrade +Operation = Remove +Target = usr/share/glib-2.0/schemas/*.gschema.xml +Target = usr/share/glib-2.0/schemas/*.gschema.override + +[Action] +Description = Compiling GSettings XML schema files... +When = PostTransaction +Exec = /usr/bin/glib-compile-schemas /usr/share/glib-2.0/schemas
