Hi,

Gweled is a puzzle game similar to Bejeweled or Diamond Mine.

Files attached

Sébastien VINCENT Aka Baste
# Compiling Time: 0.03 SBU
# Maintainer: Baste <[email protected]>

pkgname=gweled
pkgver=0.9.1
pkgrel=1
pkgdesc="A puzzle game similar to Bejeweled or Diamond Mine"
depends=('librsvg' 'libmikmod')
makedepends=('intltool')
groups=('games-extra')
archs=('i686' 'x86_64')
_F_gnome_iconcache="y"
Finclude launchpad
Fconfopts="$Fconfopts --with-scores-group=users --with-scores-user=root"

build () {
         Fbuild
         Frm var/games
}

# optimization OK
scores=( 'gweled.Normal.scores' 'gweled.Timed.scores')

post_install()
{ 
        echo -n "updating hicolor icon cache..."
        if gtk-update-icon-cache -f -t /usr/share/icons/hicolor > /dev/null 
2>&1 ; then
                echo " done."
        else
                echo " failed."
        fi
        # For Gnome-minimal ( /var/games does not exists)
        if [ ! -d /var/games ]; then 
                mkdir /var/games
        fi
        #Create the File
        for score in "${scores[@]}" ; do
                touch /var/games/$score
                chown root:users /var/games/${score}
                chmod 664 /var/games/${score}
        done
}

post_upgrade()
{
        echo -n "updating hicolor icon cache..."
        if gtk-update-icon-cache -f -t /usr/share/icons/hicolor > /dev/null 
2>&1 ; then
                echo " done."
        else
                echo " failed."
        fi
}

post_remove()
{
        echo -n "updating hicolor icon cache..."
        if gtk-update-icon-cache -f -t /usr/share/icons/hicolor > /dev/null 
2>&1 ; then
                echo " done."
        else
                echo " failed."
        fi
        ## Remove File or not ?
        for score in "${scores[@]}" ; do
                rm -f /var/games/$score
        done
        

}

op=$1
shift

$op $*
_______________________________________________
Frugalware-devel mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-devel

Reply via email to