updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / gtetrinet / gtetrinet.install
blob4af3213f217056dc9b81ab1e135646ba106a165a
1 pkgname=gtetrinet
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
6   update-desktop-database -q
9 pre_upgrade() {
10   pre_remove $1
13 post_upgrade() {
14   post_install $1
17 pre_remove() {
18   if [ -f usr/share/gconf/schemas/${pkgname}.schemas ]; then
19     schemas=(usr/share/gconf/schemas/${pkgname}.schemas)
20   elif [ -f opt/gnome/share/gconf/schemas/${pkgname}.schemas ]; then
21     schemas=(opt/gnome/share/gconf/schemas/${pkgname}.schemas)
22   else
23     schemas=(`pacman -Ql $pkgname | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }'`)
24   fi
25   export GCONF_CONFIG_SOURCE=`usr/bin/gconftool-2 --get-default-source`
26   
27   usr/bin/gconftool-2 --makefile-uninstall-rule ${schemas[@]} >/dev/null
30 post_remove() {
31   update-desktop-database -q
34 op=$1
35 shift
37 $op $*