summaryrefslogtreecommitdiff
path: root/extra/gweled/gweled.install
blob: c24563d6da65b246310e3f3daeffe75a9dace4c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
scores=(
  'gweled.Normal.scores'
  'gweled.Timed.scores'
)

post_install() {
  for score in "${scores[@]}" ; do
    if [ -e "var/games/${score}" ]; then
      continue
    fi
    touch "var/games/${score}"
    chown root:games "var/games/${score}"
    chmod 664 "var/games/${score}"
  done
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}

post_upgrade() {
  post_install $1
}

post_remove() {
  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}