wok-current rev 23309
tuxmath: added dependency libffi
author | Hans-G?nter Theisgen |
---|---|
date | Mon Mar 30 14:17:01 2020 +0100 (2020-03-30) |
parents | fc13462d982a |
children | 0d774eb19bf9 |
files | tuxmath/receipt |
line diff
1.1 --- a/tuxmath/receipt Sun Mar 29 17:52:30 2020 +0100 1.2 +++ b/tuxmath/receipt Mon Mar 30 14:17:01 2020 +0100 1.3 @@ -1,28 +1,32 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="tuxmath" 1.7 -SOURCE="tuxmath_w_fonts" 1.8 VERSION="2.0.3" 1.9 CATEGORY="games" 1.10 +TAGS="education" 1.11 SHORT_DESC="Arcade game that helps kids practice their math facts." 1.12 MAINTAINER="claudinei@slitaz.org" 1.13 LICENSE="GPL3" 1.14 +WEB_SITE="https://alioth-archive.debian.org/releases/tux4kids/TuxMath-Source/" 1.15 + 1.16 +SOURCE="tuxmath_w_fonts" 1.17 TARBALL="$SOURCE-$VERSION.tar.gz" 1.18 -WEB_SITE="https://alioth-archive.debian.org/releases/tux4kids/TuxMath-Source/" 1.19 WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL" 1.20 1.21 -DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \ 1.22 -libsdl-net libsdl-pango" 1.23 -BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \ 1.24 -libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget" 1.25 -TAGS="education" 1.26 +DEPENDS="libffi librsvg libsdl libsdl-image libsdl-mixer libsdl-net 1.27 + libsdl-pango libsdl-ttf libt4k_common" 1.28 +BUILD_DEPENDS="libffi-dev librsvg-dev libsdl-dev libsdl-image-dev 1.29 + libsdl-mixer-dev libsdl-net-dev libsdl-pango-dev 1.30 + libsdl-ttf-dev libt4k_common-dev" 1.31 1.32 # Rules to configure and make the package. 1.33 compile_rules() 1.34 { 1.35 #patch -p1 -i $stuff/SDL_extras.c.patch 1.36 - ./configure LIBS="-lt4k_common" \ 1.37 - --prefix=/usr \ 1.38 + 1.39 + ./configure \ 1.40 + LIBS="-lt4k_common" \ 1.41 + --prefix=/usr \ 1.42 $CONFIGURE_ARGS && 1.43 make && 1.44 make DESTDIR=$DESTDIR install 1.45 @@ -31,14 +35,19 @@ 1.46 # Rules to gen a SliTaz package suitable for Tazpkg. 1.47 genpkg_rules() 1.48 { 1.49 - mkdir -p $fs/usr $fs/usr/share 1.50 - cp -a $install/usr/bin $fs/usr 1.51 - cp -a $install/usr/share/tuxmath $fs/usr/share 1.52 + mkdir -p $fs/usr 1.53 + mkdir -p $fs/usr/share/locale 1.54 1.55 - for lang in de es fr pt_BR zh_CN; do 1.56 - mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES 1.57 - cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \ 1.58 - $fs/usr/share/locale/$lang/LC_MESSAGES 1.59 - done 1.60 + cp -a $install/usr/bin $fs/usr 1.61 + cp -a $install/usr/share/tuxmath $fs/usr/share 1.62 + 1.63 + # Set list of wanted locales in LOCALE_PACK 1.64 + . $WOK/slitaz-i18n/stuff/locale-pack.conf 1.65 + 1.66 + # Copy message files in wanted languages, if available 1.67 + for lang in $LOCALE_PACK 1.68 + do 1.69 + [ -d $install/usr/share/locale/$lang ] || continue 1.70 + cp -a $install/usr/share/locale/$lang $fs/usr/share/locale 1.71 + done 1.72 } 1.73 -