updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / same-gnome / same-gnome.install
bloba960839098bd69a9060fb6c55aae29351805247a
1 pkgname=same-gnome
3 scores=(same-gnome.Large.scores
4         same-gnome.Medium.scores
5         same-gnome.Small.scores)
7 post_install() {
8   usr/sbin/gconfpkg --install ${pkgname}
9   update-desktop-database -q
10   gtk-update-icon-cache -q -f -t usr/share/icons/hicolor
12   for score in "${scores[@]}" ; do
13     if [ -e "var/games/${score}" ]; then
14       continue
15     fi
16     if [ -e "opt/gnome/var/games/${score}" ]; then
17       mv "opt/gnome/var/games/${score}" var/games/
18     else
19       touch "var/games/${score}"
20     fi
21     chown root:games "var/games/${score}"
22     chmod 664 "var/games/${score}"
23   done
26 pre_upgrade() {
27   pre_remove $1
30 post_upgrade() {
31   post_install $1
34 pre_remove() {
35   usr/sbin/gconfpkg --install ${pkgname}
38 post_remove() {
39   update-desktop-database -q
40   gtk-update-icon-cache -q -f -t usr/share/icons/hicolor
42   for score in "${scores[@]}" ; do
43     rm -f "var/games/${score}"
44   done