[arch-commits] Commit in glib2/trunk (PKGBUILD glib2.install)

Jan de Groot jgc at archlinux.org
Tue Feb 23 12:29:22 UTC 2016


    Date: Tuesday, February 23, 2016 @ 13:29:22
  Author: jgc
Revision: 260183

upgpkg: glib2 2.46.2-3

(re)compile schemas on install/upgrade, remove on uninstall (FS#48304)

Added:
  glib2/trunk/glib2.install
Modified:
  glib2/trunk/PKGBUILD

---------------+
 PKGBUILD      |    3 ++-
 glib2.install |   13 +++++++++++++
 2 files changed, 15 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-02-23 12:20:33 UTC (rev 260182)
+++ PKGBUILD	2016-02-23 12:29:22 UTC (rev 260183)
@@ -4,7 +4,7 @@
 pkgbase=glib2
 pkgname=(glib2 glib2-docs)
 pkgver=2.46.2
-pkgrel=2
+pkgrel=3
 pkgdesc="Common C routines used by GTK+ and other libs"
 url="http://www.gtk.org/"
 arch=(i686 x86_64)
@@ -41,6 +41,7 @@
               'libelf: gresource inspection tool')
   options=('!docs' '!emptydirs')
   license=('LGPL')
+  install=glib2.install
 
   cd glib-$pkgver
   make completiondir=/usr/share/bash-completion/completions DESTDIR="$pkgdir" install

Added: glib2.install
===================================================================
--- glib2.install	                        (rev 0)
+++ glib2.install	2016-02-23 12:29:22 UTC (rev 260183)
@@ -0,0 +1,13 @@
+post_install() {
+    glib-compile-schemas /usr/share/glib-2.0/schemas
+}
+
+post_upgrade() {
+    glib-compile-schemas /usr/share/glib-2.0/schemas
+}
+
+pre_remove() {
+    if [ -f /usr/share/glib-2.0/schemas/gschemas.compiled ]; then
+        rm /usr/share/glib-2.0/schemas/gschemas.compiled
+    fi
+}



More information about the arch-commits mailing list