From 987f836820eae061f40608b4ee1b6a14ecced3cc Mon Sep 17 00:00:00 2001 From: root Date: Tue, 9 Apr 2013 00:05:27 -0700 Subject: Tue Apr 9 00:05:27 PDT 2013 --- community/gnome-media/gnome-media.install | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 community/gnome-media/gnome-media.install (limited to 'community/gnome-media/gnome-media.install') diff --git a/community/gnome-media/gnome-media.install b/community/gnome-media/gnome-media.install new file mode 100644 index 000000000..0574e8765 --- /dev/null +++ b/community/gnome-media/gnome-media.install @@ -0,0 +1,26 @@ +pkgname=gnome-sound-recorder + +post_install() { + usr/sbin/gconfpkg --install ${pkgname} + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +} + +pre_upgrade() { + pre_remove $1 +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + if [ "$(vercmp 3.4.0-2 "$2")" -eq 1 ]; then + usr/sbin/gconfpkg --uninstall gnome-media + else + usr/sbin/gconfpkg --uninstall ${pkgname} + fi +} + +post_remove() { + gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor +} -- cgit v1.2.3-54-g00ecf