diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/kobodeluxe/kobodeluxe.install |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/kobodeluxe/kobodeluxe.install')
-rw-r--r-- | extra/kobodeluxe/kobodeluxe.install | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/extra/kobodeluxe/kobodeluxe.install b/extra/kobodeluxe/kobodeluxe.install new file mode 100644 index 000000000..7136b4880 --- /dev/null +++ b/extra/kobodeluxe/kobodeluxe.install @@ -0,0 +1,21 @@ +post_install() { + post_upgrade +} + +post_upgrade() { + if [ -d usr/share/kobo-deluxe/kobo-deluxe/scores ] ; then + for i in usr/share/kobo-deluxe/kobo-deluxe/scores/* ; do + mv $i var/games/kobo-deluxe/scores/ + done + rmdir usr/share/kobo-deluxe/kobo-deluxe/scores + rmdir usr/share/kobo-deluxe/kobo-deluxe + chgrp -R games /var/games/kobo-deluxe/scores/ + fi + # update icon cache if gtk2 is installed. I don't want to add a gtk2 depends just for that. + [ -x usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + # update icon cache if gtk2 is installed. I don't want to add a gtk2 depends just for that. + [ -x usr/bin/gtk-update-icon-cache ] && gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} |