summaryrefslogtreecommitdiff
path: root/extra/sound-juicer/sound-juicer.install
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-05-25 03:54:24 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-05-25 03:54:24 +0000
commit5f3874cb8718456941af21c866515ddddd82edbc (patch)
tree9c1cbf3f8610259ad226a26e880ed366db80a779 /extra/sound-juicer/sound-juicer.install
parenta159647ee8bfb38fdf66e4e726ed08e6f2b67f90 (diff)
Sun May 25 03:44:44 UTC 2014
Diffstat (limited to 'extra/sound-juicer/sound-juicer.install')
-rw-r--r--extra/sound-juicer/sound-juicer.install16
1 files changed, 5 insertions, 11 deletions
diff --git a/extra/sound-juicer/sound-juicer.install b/extra/sound-juicer/sound-juicer.install
index 5286a0055..5f83cb495 100644
--- a/extra/sound-juicer/sound-juicer.install
+++ b/extra/sound-juicer/sound-juicer.install
@@ -1,24 +1,18 @@
-pkgname=sound-juicer
-
post_install() {
- usr/sbin/gconfpkg --install ${pkgname}
+ glib-compile-schemas /usr/share/glib-2.0/schemas
update-desktop-database -q
gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
pre_upgrade() {
- pre_remove $1
+ (( $(vercmp $2 3.12.0) < 0 )) && gconfpkg --uninstall sound-juicer
+ return 0
}
post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- usr/sbin/gconfpkg --uninstall ${pkgname}
+ post_install
}
post_remove() {
- update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+ post_install
}