updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / yogi / yogi.install
blobe901dd13d4c7afa65026949843a5002ecb481c1c
1 pkgname=evince
3 post_install() {
4   export GCONF_CONFIG_SOURCE=`opt/gnome/bin/gconftool-2 --get-default-source`
5   opt/gnome/bin/gconftool-2 --makefile-install-rule opt/gnome/share/gconf/schemas/${pkgname}.schemas >/dev/null
6   scrollkeeper-update -q -p var/lib/scrollkeeper
7   update-desktop-database -q
10 pre_upgrade() {
11   pre_remove $1
14 post_upgrade() {
15   post_install $1
18 pre_remove() {
19   if [ -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=`opt/gnome/bin/gconftool-2 --get-default-source`
25   
26   opt/gnome/bin/gconftool-2 --makefile-uninstall-rule ${schemas[@]} >/dev/null
29 post_remove() {
30   update-desktop-database -q
31   scrollkeeper-update -q -p var/lib/scrollkeeper
34 op=$1
35 shift
37 $op $*