diff options
Diffstat (limited to 'extra/gnome-control-center/gnome-control-center.install')
-rw-r--r-- | extra/gnome-control-center/gnome-control-center.install | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/extra/gnome-control-center/gnome-control-center.install b/extra/gnome-control-center/gnome-control-center.install new file mode 100644 index 000000000..6d6b5678d --- /dev/null +++ b/extra/gnome-control-center/gnome-control-center.install @@ -0,0 +1,29 @@ +pkgname=gnome-control-center + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-mime-database usr/share/mime +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + if [ "`vercmp $2 2.22.0-3`" -lt 0 ]; then + usr/sbin/gconfpkg --install gnome-settings-daemon + fi + post_install $1 +} + +pre_remove() { + usr/sbin/gconfpkg --uninstall ${pkgname} +} + +post_remove() { + update-desktop-database -q + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-mime-database usr/share/mime +} |