wok view tuxmath/receipt @ rev 23309

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