awesome 3.3 --> 3.4
[cinan.git] / root / var / lib / pacman / local / gnome-blog-0.9.1-2 / install
blobc1fb2c57f4101d8c28f818d8bab25dcbfd791689
1 pkgname=gnome-blog
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
32 $op $*