wok annotate tuxmath/receipt @ rev 23692
updated tcplay (2.0 -> 3.3)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Apr 27 06:44:33 2020 +0100 (2020-04-27) |
parents | 6135577f4d08 |
children | b78e79c31b1f |
rev | line source |
---|---|
claudinei@3314 | 1 # SliTaz package receipt. |
claudinei@3314 | 2 |
claudinei@3314 | 3 PACKAGE="tuxmath" |
samuel_trassare@11758 | 4 VERSION="2.0.3" |
claudinei@3314 | 5 CATEGORY="games" |
Hans-G?nter@23309 | 6 TAGS="education" |
claudinei@3314 | 7 SHORT_DESC="Arcade game that helps kids practice their math facts." |
claudinei@3314 | 8 MAINTAINER="claudinei@slitaz.org" |
pascal@15360 | 9 LICENSE="GPL3" |
Hans-G?nter@23309 | 10 WEB_SITE="https://alioth-archive.debian.org/releases/tux4kids/TuxMath-Source/" |
Hans-G?nter@23309 | 11 |
Hans-G?nter@23309 | 12 SOURCE="tuxmath_w_fonts" |
claudinei@3314 | 13 TARBALL="$SOURCE-$VERSION.tar.gz" |
samuel_trassare@11758 | 14 WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL" |
pankso@16236 | 15 |
Hans-G?nter@23309 | 16 DEPENDS="libffi librsvg libsdl libsdl-image libsdl-mixer libsdl-net |
Hans-G?nter@23309 | 17 libsdl-pango libsdl-ttf libt4k_common" |
Hans-G?nter@23309 | 18 BUILD_DEPENDS="libffi-dev librsvg-dev libsdl-dev libsdl-image-dev |
Hans-G?nter@23309 | 19 libsdl-mixer-dev libsdl-net-dev libsdl-pango-dev |
Hans-G?nter@23309 | 20 libsdl-ttf-dev libt4k_common-dev" |
claudinei@3314 | 21 |
claudinei@3314 | 22 # Rules to configure and make the package. |
claudinei@3314 | 23 compile_rules() |
claudinei@3314 | 24 { |
samuel_trassare@11758 | 25 #patch -p1 -i $stuff/SDL_extras.c.patch |
Hans-G?nter@23309 | 26 |
Hans-G?nter@23309 | 27 ./configure \ |
Hans-G?nter@23309 | 28 LIBS="-lt4k_common" \ |
Hans-G?nter@23309 | 29 --prefix=/usr \ |
claudinei@3314 | 30 $CONFIGURE_ARGS && |
claudinei@3314 | 31 make && |
pascal@15360 | 32 make DESTDIR=$DESTDIR install |
claudinei@3314 | 33 } |
claudinei@3314 | 34 |
claudinei@3314 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3314 | 36 genpkg_rules() |
claudinei@3314 | 37 { |
Hans-G?nter@23309 | 38 mkdir -p $fs/usr |
Hans-G?nter@23309 | 39 mkdir -p $fs/usr/share/locale |
claudinei@3314 | 40 |
Hans-G?nter@23309 | 41 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@23309 | 42 cp -a $install/usr/share/tuxmath $fs/usr/share |
Hans-G?nter@23309 | 43 |
Hans-G?nter@23309 | 44 # Set list of wanted locales in LOCALE_PACK |
Hans-G?nter@23309 | 45 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
Hans-G?nter@23309 | 46 |
Hans-G?nter@23309 | 47 # Copy message files in wanted languages, if available |
Hans-G?nter@23309 | 48 for lang in $LOCALE_PACK |
Hans-G?nter@23309 | 49 do |
Hans-G?nter@23309 | 50 [ -d $install/usr/share/locale/$lang ] || continue |
Hans-G?nter@23309 | 51 cp -a $install/usr/share/locale/$lang $fs/usr/share/locale |
Hans-G?nter@23309 | 52 done |
claudinei@3314 | 53 } |