updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / istanbul / istanbul.install
blob0156b664d2c8f4c4e990512abe6573c1c54f1164
1 pkgname=istanbul
3 post_install() {
4   export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
5   usr/bin/gconftool-2 --makefile-install-rule usr/share/gconf/schemas/${pkgname}.schemas >/dev/null
8 pre_upgrade() {
9   pre_remove $1
12 post_upgrade() {
13   post_install $1
16 pre_remove() {
17   if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then
18     schemas=(usr/share/gconf/schemas/${pkgname}.schemas)
19   elif [ -f opt/gnome/share/gconf/schemas/${pkgname}.schemas ]; then
20     schemas=(opt/gnome/share/gconf/schemas/${pkgname}.schemas)
21   else
22     schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
23   fi
24   export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
25   
26   usr/bin/gconftool-2 --makefile-uninstall-rule ${schemas[@]} >/dev/null
29 op=$1
30 shift
31 $op $*