wok diff childsplay-plugins/receipt @ rev 3809

Up: tazpkg (3.0) - New commands, improvment and fix
author Christophe Lincoln <pankso@slitaz.org>
date Wed Aug 05 23:26:27 2009 +0200 (2009-08-05)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/childsplay-plugins/receipt	Wed Aug 05 23:26:27 2009 +0200
     1.3 @@ -0,0 +1,46 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="childsplay-plugins"
     1.7 +SOURCE="childsplay_plugins"
     1.8 +VERSION="0.90"
     1.9 +CATEGORY="games"
    1.10 +SHORT_DESC="Extra games for childsplay."
    1.11 +MAINTAINER="claudinei@slitaz.org"
    1.12 +TARBALL="$SOURCE-$VERSION.tgz"
    1.13 +WEB_SITE="http://www.childschool.org"
    1.14 +WGET_URL="$SF_MIRROR/childsplay/$TARBALL"
    1.15 +DEPENDS="python childsplay"
    1.16 +BUILD_DEPENDS="$DEPENDS"
    1.17 +
    1.18 +# Rules to configure and make the package.
    1.19 +compile_rules()
    1.20 +{
    1.21 +	cd $src
    1.22 +	patch -p1 -i ../stuff/install.sh.patch	
    1.23 +	sh install.sh
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +	mkdir -p $fs/usr $fs/usr/share $fs/var/games
    1.30 +	cp -a $_pkg/usr/bin $fs/usr
    1.31 +	cp -a $_pkg/usr/lib $fs/usr
    1.32 +	cp -a $_pkg/usr/share/assetml $fs/usr/share
    1.33 +	cp -a $_pkg/usr/share/childsplay $fs/usr/share
    1.34 +	cp -a $_pkg/usr/share/childsplay/Data/childsplay.score \
    1.35 +		$fs/var/games
    1.36 +}
    1.37 +
    1.38 +# Remove the original childsplay.score file and write the new one
    1.39 +post_install()
    1.40 +{
    1.41 +	VARDIR="/var/games"
    1.42 +	DATADIR="/usr/share/childsplay/Data"
    1.43 +	SCOREFILE="childsplay.score"
    1.44 +	if [ -f $VARDIR/$SCOREFILE ] 
    1.45 +	then
    1.46 +		rm $DATADIR/$SCOREFILE
    1.47 +		ln -s $VARDIR/$SCOREFILE $DATADIR/$SCOREFILE
    1.48 +	fi
    1.49 +}