PKGBUILDs/community/gramps/gramps.install
2009-10-09 21:15:33 -05:00

32 lines
939 B
Text

schemas=(
'/usr/etc/gconf/schemas/gramps.schemas'
)
post_install() {
for schema in "${schemas[@]}" ; do
GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` /usr/bin/gconftool-2 --makefile-install-rule "$schema" > /dev/null 2>&1
done
kill -s HUP `pidof /usr/bin/gconfd-2` > /dev/null 2>&1
echo "updating scrollkeeper catalogue ..."
scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
update-desktop-database > /dev/null 2>&1
}
post_upgrade() {
post_install $1
}
pre_remove() {
for schema in "${schemas[@]}" ; do
GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` /usr/bin/gconftool-2 --makefile-uninstall-rule "$schema" > /dev/null 2>&1
done
echo "updating scrollkeeper catalogue ..."
kill -s HUP `pidof /usr/bin/gconfd-2` > /dev/null 2>&1
scrollkeeper-update -p /var/lib/scrollkeeper > /dev/null 2>&1
update-desktop-database > /dev/null 2>&1
}
op=$1
shift
$op $*