wok annotate tuxmath/receipt @ rev 14805
Up slitaz-doc (4.4), ssfs (1.1), tazdrop (5.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 17 09:28:07 2013 +0200 (2013-07-17) |
parents | 85efaaf0bef2 |
children | 6ed98834e3eb |
rev | line source |
---|---|
claudinei@3314 | 1 # SliTaz package receipt. |
claudinei@3314 | 2 |
claudinei@3314 | 3 PACKAGE="tuxmath" |
claudinei@3314 | 4 SOURCE="tuxmath_w_fonts" |
samuel_trassare@11758 | 5 VERSION="2.0.3" |
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" |
samuel_trassare@11758 | 11 WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL" |
samuel_trassare@11758 | 12 DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \ |
samuel_trassare@11758 | 13 libsdl-net libsdl-pango" |
samuel_trassare@11758 | 14 BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \ |
gokhlayeh@12072 | 15 libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget" |
jozee@4973 | 16 TAGS="education" |
claudinei@3314 | 17 |
claudinei@3314 | 18 |
claudinei@3314 | 19 # Rules to configure and make the package. |
claudinei@3314 | 20 compile_rules() |
claudinei@3314 | 21 { |
claudinei@3314 | 22 cd $src |
samuel_trassare@11758 | 23 #patch -p1 -i $stuff/SDL_extras.c.patch |
claudinei@3314 | 24 ./configure \ |
claudinei@3314 | 25 --prefix=/usr \ |
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 |