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

Jan de Groot jgc at archlinux.org
Sun Oct 12 18:17:49 UTC 2008


    Date: Sunday, October 12, 2008 @ 14:17:49
  Author: jgc
Revision: 15168

Add install scriptlet

Added:
  libcanberra/trunk/libcanberra.install

---------------------+
 libcanberra.install |   19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

Added: libcanberra.install
===================================================================
--- libcanberra.install	                        (rev 0)
+++ libcanberra.install	2008-10-12 18:17:49 UTC (rev 15168)
@@ -0,0 +1,19 @@
+pkgname=libcanberra
+
+post_install() {
+  usr/sbin/gconfpkg --install ${pkgname}
+}
+
+pre_upgrade() {
+  if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then
+    pre_remove
+  fi
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  usr/sbin/gconfpkg --uninstall ${pkgname}
+}




More information about the arch-commits mailing list