diff options
Diffstat (limited to 'extra/gweled/gweled.install')
-rw-r--r-- | extra/gweled/gweled.install | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/extra/gweled/gweled.install b/extra/gweled/gweled.install new file mode 100644 index 000000000..c24563d6d --- /dev/null +++ b/extra/gweled/gweled.install @@ -0,0 +1,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 +} |