wok diff tuxmath/receipt @ rev 3314

Add: tuxmath
author Claudinei Pereira <claudinei@slitaz.org>
date Sun Jun 07 00:04:02 2009 +0000 (2009-06-07)
parents
children e8024c01fc47
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tuxmath/receipt	Sun Jun 07 00:04:02 2009 +0000
     1.3 @@ -0,0 +1,43 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="tuxmath"
     1.7 +SOURCE="tuxmath_w_fonts"
     1.8 +VERSION="1.7.2"
     1.9 +CATEGORY="games"
    1.10 +SHORT_DESC="Arcade game that helps kids practice their math facts."
    1.11 +MAINTAINER="claudinei@slitaz.org"
    1.12 +TARBALL="$SOURCE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://tux4kids.alioth.debian.org"
    1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.15 +DEPENDS="libSDL libsdl-image libsdl-mixer libsdl-ttf"
    1.16 +BUILD_DEPENDS="libSDL libSDL-dev libsdl-image libsdl-image-dev \
    1.17 +libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev"
    1.18 +
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	cd $src
    1.24 +	patch -p1 -i ../stuff/SDL_extras.c.patch	
    1.25 +	./configure \
    1.26 +		--prefix=/usr \
    1.27 +		--without-sdlpango \
    1.28 +		$CONFIGURE_ARGS &&
    1.29 +	make &&
    1.30 +	make DESTDIR=$PWD/_pkg install
    1.31 +}
    1.32 +
    1.33 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.34 +genpkg_rules()
    1.35 +{
    1.36 +	mkdir -p $fs/usr $fs/usr/share
    1.37 +	cp -a $_pkg/usr/bin $fs/usr
    1.38 +	cp -a $_pkg/usr/share/tuxmath $fs/usr/share
    1.39 +
    1.40 +	for lang in de es fr pt_BR zh_CN; do
    1.41 +		mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
    1.42 +		cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \
    1.43 +		        $fs/usr/share/locale/$lang/LC_MESSAGES
    1.44 +	done
    1.45 +}
    1.46 +