wok annotate tuxmath/receipt @ rev 6746
Up mpd (0.15.12)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Sun Oct 17 18:04:38 2010 +0000 (2010-10-17) |
parents | e8024c01fc47 |
children | 940b5937e496 |
rev | line source |
---|---|
claudinei@3314 | 1 # SliTaz package receipt. |
claudinei@3314 | 2 |
claudinei@3314 | 3 PACKAGE="tuxmath" |
claudinei@3314 | 4 SOURCE="tuxmath_w_fonts" |
claudinei@3314 | 5 VERSION="1.7.2" |
claudinei@3314 | 6 CATEGORY="games" |
claudinei@3314 | 7 SHORT_DESC="Arcade game that helps kids practice their math facts." |
claudinei@3314 | 8 MAINTAINER="claudinei@slitaz.org" |
claudinei@3314 | 9 TARBALL="$SOURCE-$VERSION.tar.gz" |
claudinei@3314 | 10 WEB_SITE="http://tux4kids.alioth.debian.org" |
claudinei@3314 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@3425 | 12 DEPENDS="libsdl libsdl-image libsdl-mixer libsdl-ttf" |
pankso@3425 | 13 BUILD_DEPENDS="libsdl libsdl-dev libsdl-image libsdl-image-dev \ |
claudinei@3314 | 14 libsdl-mixer libsdl-mixer-dev libsdl-ttf libsdl-ttf-dev" |
jozee@4973 | 15 TAGS="education" |
claudinei@3314 | 16 |
claudinei@3314 | 17 |
claudinei@3314 | 18 # Rules to configure and make the package. |
claudinei@3314 | 19 compile_rules() |
claudinei@3314 | 20 { |
claudinei@3314 | 21 cd $src |
claudinei@3314 | 22 patch -p1 -i ../stuff/SDL_extras.c.patch |
claudinei@3314 | 23 ./configure \ |
claudinei@3314 | 24 --prefix=/usr \ |
claudinei@3314 | 25 --without-sdlpango \ |
claudinei@3314 | 26 $CONFIGURE_ARGS && |
claudinei@3314 | 27 make && |
claudinei@3314 | 28 make DESTDIR=$PWD/_pkg install |
claudinei@3314 | 29 } |
claudinei@3314 | 30 |
claudinei@3314 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3314 | 32 genpkg_rules() |
claudinei@3314 | 33 { |
claudinei@3314 | 34 mkdir -p $fs/usr $fs/usr/share |
claudinei@3314 | 35 cp -a $_pkg/usr/bin $fs/usr |
claudinei@3314 | 36 cp -a $_pkg/usr/share/tuxmath $fs/usr/share |
claudinei@3314 | 37 |
claudinei@3314 | 38 for lang in de es fr pt_BR zh_CN; do |
claudinei@3314 | 39 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
claudinei@3314 | 40 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \ |
claudinei@3314 | 41 $fs/usr/share/locale/$lang/LC_MESSAGES |
claudinei@3314 | 42 done |
claudinei@3314 | 43 } |
claudinei@3314 | 44 |