wok-current diff childsplay/receipt @ rev 3340

Add: childsplay (0.90.2)
author Claudinei Pereira <claudinei@slitaz.org>
date Thu Jun 11 02:15:26 2009 +0000 (2009-06-11)
parents
children 5d0039136362
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/childsplay/receipt	Thu Jun 11 02:15:26 2009 +0000
     1.3 @@ -0,0 +1,40 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="childsplay"
     1.7 +VERSION="0.90.2"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Python educational game."
    1.10 +MAINTAINER="claudinei@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tgz"
    1.12 +WEB_SITE="http://www.childschool.org"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +DEPENDS="python pygame"
    1.15 +BUILD_DEPENDS="python python-dev pygame libSDL libSDL-dev libsdl-image \
    1.16 +libsdl-image-dev libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev \
    1.17 +libsmpeg libsmpeg-dev"
    1.18 +
    1.19 +# Rules to configure and make the package.
    1.20 +compile_rules()
    1.21 +{
    1.22 +	cd $src
    1.23 +	patch -p1 -i ../stuff/INSTALL.sh.patch	
    1.24 +	sh INSTALL.sh
    1.25 +	sed -i "s/\/usr\/local/\/usr/" $src/_pkg/usr/bin/childsplay
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +	mkdir -p $fs/usr $fs/usr/share $fs/var
    1.32 +	cp -a $_pkg/usr/bin $fs/usr
    1.33 +	cp -a $_pkg/usr/lib $fs/usr
    1.34 +	cp -a $_pkg/usr/share/assetml $fs/usr/share
    1.35 +	cp -a $_pkg/usr/share/childsplay $fs/usr/share
    1.36 +	cp -a $_pkg/var/games $fs/var
    1.37 +
    1.38 +	for lang in de es fr pt; do
    1.39 +		mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
    1.40 +		cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/childsplay.mo \
    1.41 +			$fs/usr/share/locale/$lang/LC_MESSAGES
    1.42 +	done
    1.43 +}