updated on Fri Jan 6 04:00:21 UTC 2012
[aur-mirror.git] / aisleriot / aisleriot.install
blobd9040648da2431ceabe94d3ca43e4d7b72d7bee6
1 pkgname=gnome-games
2 scores=()
4 post_install() {
5   usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
6   usr/sbin/gconfpkg --install ${pkgname}
7   update-desktop-database -q
8   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
10   #for score in "${scores[@]}" ; do
11     #if [ -e "var/games/${score}" ]; then
12       #continue
13     #fi
14     #if [ -e "opt/gnome/var/games/${score}" ]; then
15       #mv "opt/gnome/var/games/${score}" var/games/
16     #else
17       #touch "var/games/${score}"
18     #fi
19     #chown root:games "var/games/${score}"
20     #chmod 664 "var/games/${score}"
21   #done
24 pre_upgrade() {
25   pre_remove $1
28 post_upgrade() {
29   post_install $1
32 pre_remove() {
33   usr/sbin/gconfpkg --uninstall ${pkgname}
36 post_remove() {
37   usr/bin/glib-compile-schemas usr/share/glib-2.0/schemas
38   update-desktop-database -q
39   gtk-update-icon-cache -q -f -t usr/share/icons/hicolor
41   #for score in "${scores[@]}" ; do
42   #  rm -f "var/games/${score}"
43   #done