# HG changeset patch # User Hans-G?nter Theisgen # Date 1585574221 -3600 # Node ID 612b5be4bfc5756f0219a113094f538111b19284 # Parent fc13462d982a816516b025fd827115396d10bc8a tuxmath: added dependency libffi diff -r fc13462d982a -r 612b5be4bfc5 tuxmath/receipt --- a/tuxmath/receipt Sun Mar 29 17:52:30 2020 +0100 +++ b/tuxmath/receipt Mon Mar 30 14:17:01 2020 +0100 @@ -1,28 +1,32 @@ # SliTaz package receipt. PACKAGE="tuxmath" -SOURCE="tuxmath_w_fonts" VERSION="2.0.3" CATEGORY="games" +TAGS="education" SHORT_DESC="Arcade game that helps kids practice their math facts." MAINTAINER="claudinei@slitaz.org" LICENSE="GPL3" +WEB_SITE="https://alioth-archive.debian.org/releases/tux4kids/TuxMath-Source/" + +SOURCE="tuxmath_w_fonts" TARBALL="$SOURCE-$VERSION.tar.gz" -WEB_SITE="https://alioth-archive.debian.org/releases/tux4kids/TuxMath-Source/" WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL" -DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \ -libsdl-net libsdl-pango" -BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \ -libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget" -TAGS="education" +DEPENDS="libffi librsvg libsdl libsdl-image libsdl-mixer libsdl-net + libsdl-pango libsdl-ttf libt4k_common" +BUILD_DEPENDS="libffi-dev librsvg-dev libsdl-dev libsdl-image-dev + libsdl-mixer-dev libsdl-net-dev libsdl-pango-dev + libsdl-ttf-dev libt4k_common-dev" # Rules to configure and make the package. compile_rules() { #patch -p1 -i $stuff/SDL_extras.c.patch - ./configure LIBS="-lt4k_common" \ - --prefix=/usr \ + + ./configure \ + LIBS="-lt4k_common" \ + --prefix=/usr \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install @@ -31,14 +35,19 @@ # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr $fs/usr/share - cp -a $install/usr/bin $fs/usr - cp -a $install/usr/share/tuxmath $fs/usr/share + mkdir -p $fs/usr + mkdir -p $fs/usr/share/locale - for lang in de es fr pt_BR zh_CN; do - mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES - cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \ - $fs/usr/share/locale/$lang/LC_MESSAGES - done + cp -a $install/usr/bin $fs/usr + cp -a $install/usr/share/tuxmath $fs/usr/share + + # Set list of wanted locales in LOCALE_PACK + . $WOK/slitaz-i18n/stuff/locale-pack.conf + + # Copy message files in wanted languages, if available + for lang in $LOCALE_PACK + do + [ -d $install/usr/share/locale/$lang ] || continue + cp -a $install/usr/share/locale/$lang $fs/usr/share/locale + done } -