[arch-commits] Commit in gconf/trunk (PKGBUILD gconf-install.hook gconf-remove.hook)

Allan McRae allan at archlinux.org
Wed Apr 27 12:15:37 UTC 2016


    Date: Wednesday, April 27, 2016 @ 14:15:36
  Author: allan
Revision: 266209

upgpkg: gconf 3.2.6-4

add gconf install/remove hooks

Added:
  gconf/trunk/gconf-install.hook
  gconf/trunk/gconf-remove.hook
Modified:
  gconf/trunk/PKGBUILD

--------------------+
 PKGBUILD           |    8 +++++++-
 gconf-install.hook |   11 +++++++++++
 gconf-remove.hook  |   10 ++++++++++
 3 files changed, 28 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-04-27 11:51:30 UTC (rev 266208)
+++ PKGBUILD	2016-04-27 12:15:36 UTC (rev 266209)
@@ -3,7 +3,7 @@
 
 pkgname=gconf
 pkgver=3.2.6
-pkgrel=3
+pkgrel=4
 pkgdesc="A configuration database system"
 arch=(i686 x86_64)
 license=('LGPL')
@@ -15,11 +15,14 @@
         gconf-merge-schema
         gconfpkg
         gconf-reload.patch
+        gconf-{install,remove}.hook
         01_xml-gettext-domain.patch)
 sha256sums=('1912b91803ab09a5eed34d364bf09fe3a2a9c96751fde03a4e0cfa51a04d784c'
             'ee6b6e6f4975dad13a8c45f1c1f0547a99373bdecdcd6604bfc12965c328a028'
             'bf1928718caa5df2b9e54a13cfd0f15a8fe0e09e86b84385ce023616a114e898'
             '567b78d8b4b4bbcb77c5f134d57bc503c34867fcc6341c0b01716bcaa4a21694'
+            '2732b2a6b187c5620105a036bde12edee99669605f70cbde56fe5f39619c3dc0'
+            '436a65ff290095bc3d35d7d6297cf4d647f61e9f9922cea7ef9f1e251b447ff7'
             'c883dec2b96978874a53700cfe7f26f24f8296767203e970bc6402b4b9945eb8')
 
 prepare() {
@@ -52,4 +55,7 @@
   install -m755 -d "$pkgdir/etc/gconf/gconf.xml.system"
   install -m755 "$srcdir/gconf-merge-schema" "$pkgdir/usr/bin/"
   install -m755 "$srcdir/gconfpkg" "$pkgdir/usr/bin/gconfpkg"
+  
+  install -dm755 "$pkgdir"/usr/share/libalpm/hooks/
+  install -m644 "$srcdir"/gconf-{install,remove}.hook "$pkgdir"/usr/share/libalpm/hooks/
 }

Added: gconf-install.hook
===================================================================
--- gconf-install.hook	                        (rev 0)
+++ gconf-install.hook	2016-04-27 12:15:36 UTC (rev 266209)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/share/gconf/schemas/*.schemas
+
+[Action]
+Description = Installing GConf schemas...
+When = PostTransaction
+Exec = /bin/bash -c 'while read -r f; do f=$(basename "$f" .schemas); /usr/bin/gconfpkg --install $f; done'
+NeedsTargets

Added: gconf-remove.hook
===================================================================
--- gconf-remove.hook	                        (rev 0)
+++ gconf-remove.hook	2016-04-27 12:15:36 UTC (rev 266209)
@@ -0,0 +1,10 @@
+[Trigger]
+Type = File
+Operation = Remove
+Target = usr/share/gconf/schemas/*.schemas
+
+[Action]
+Description = Uninstalling GConf schemas...
+When = PreTransaction
+Exec = /bin/bash -c 'while read -r f; do f=$(basename "$f" .schemas); /usr/bin/gconfpkg --uninstall $f; done'
+NeedsTargets



More information about the arch-commits mailing list