[arch-commits] CVS update of extra/gnome/evolution-exchange (1 file)
Jan de Groot
jgc at archlinux.org
Mon Apr 23 16:30:31 UTC 2007
Date: Monday, April 23, 2007 @ 12:30:31
Author: jgc
Path: /home/cvs-extra/extra/gnome/evolution-exchange
Added: evolution-exchange.install (1.1)
Add long forgotten install scriptlet
----------------------------+
evolution-exchange.install | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Index: extra/gnome/evolution-exchange/evolution-exchange.install
diff -u /dev/null extra/gnome/evolution-exchange/evolution-exchange.install:1.1
--- /dev/null Mon Apr 23 12:30:31 2007
+++ extra/gnome/evolution-exchange/evolution-exchange.install Mon Apr 23 12:30:31 2007
@@ -0,0 +1,32 @@
+pkgname=evolution-exchange
+
+post_install() {
+ export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
+ usr/bin/gconftool-2 --makefile-install-rule usr/share/gconf/schemas/${pkgname}.schemas >/dev/null
+}
+
+pre_upgrade() {
+ pre_remove $1
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then
+ schemas=(usr/share/gconf/schemas/${pkgname}.schemas)
+ elif [ -f opt/gnome/share/gconf/schemas/${pkgname}.schemas ]; then
+ schemas=(opt/gnome/share/gconf/schemas/${pkgname}.schemas)
+ else
+ schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
+ fi
+ export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
+
+ usr/bin/gconftool-2 --makefile-uninstall-rule ${schemas[@]} >/dev/null
+}
+
+op=$1
+shift
+
+$op $*
More information about the arch-commits
mailing list