updated on Mon Jan 16 12:07:49 UTC 2012
[aur-mirror.git] / teg / teg.install
blobbfc918af1bccd10254304240ba2071ecf68bca64
1 # Contributor: DonVla <donvla@users.sourceforge.net>
2 # teg install file
4 _pkgname=teg
6 post_install() {
7   export GCONF_CONFIG_SOURCE=$(usr/bin/gconftool-2 --get-default-source)
8   usr/bin/gconftool-2 --makefile-install-rule usr/share/gconf/schemas/${_pkgname}.schemas >/dev/null
11 pre_upgrade() {
12   pre_remove $1
15 post_upgrade() {
16   post_install $1
19 pre_remove() {
20   if [ -f usr/share/gconf/schemas/${_pkgname}.schemas ]; then
21     _schemas=(usr/share/gconf/schemas/${_pkgname}.schemas)
22   elif [ -f opt/gnome/share/gconf/schemas/${_pkgname}.schemas ]; then
23     _schemas=(opt/gnome/share/gconf/schemas/${_pkgname}.schemas)
24   else
25     _schemas=( $(pacman -Ql ${_pkgname} | grep 'gconf/schemas/.*schemas$' | awk '{ print $2 }') )
26   fi
27   export GCONF_CONFIG_SOURCE=$(usr/bin/gconftool-2 --get-default-source)
28   
29   usr/bin/gconftool-2 --makefile-uninstall-rule ${_schemas[@]} >/dev/null