summaryrefslogtreecommitdiff
path: root/extra/kobodeluxe/kobodeluxe.install
diff options
context:
space:
mode:
Diffstat (limited to 'extra/kobodeluxe/kobodeluxe.install')
-rw-r--r--extra/kobodeluxe/kobodeluxe.install20
1 files changed, 20 insertions, 0 deletions
diff --git a/extra/kobodeluxe/kobodeluxe.install b/extra/kobodeluxe/kobodeluxe.install
new file mode 100644
index 000000000..54b9f81f6
--- /dev/null
+++ b/extra/kobodeluxe/kobodeluxe.install
@@ -0,0 +1,20 @@
+post_install() {
+ post_upgrade
+}
+
+post_upgrade() {
+ if [ -d usr/share/kobo-deluxe/kobo-deluxe/scores ] ; then
+ mkdir -p var/games/kobo-deluxe/scores/
+ 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
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_remove() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}