summaryrefslogtreecommitdiff
path: root/extra/kobodeluxe/kobodeluxe.install
blob: 54b9f81f68073216c86e9c097880dfa8911ab5cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
}