wok-6.x view tuxmath/receipt @ rev 24525
Up libav (0.6.6 -> 12.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 22 16:15:28 2022 +0000 (2022-02-22) |
parents | 612b5be4bfc5 |
children | 1805f71c5d9f |
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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - $WEB_SITE$(wget -O - $WEB_SITE 2>/dev/null | \
26 sed '/TuxMath-Source/!d;/Index/d;s|.*href="||;s|/.*||' | sort -Vr | sed q) 2>/dev/null | \
27 sed "/latest/d;/$SOURCE-/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 #patch -p1 -i $stuff/SDL_extras.c.patch
35 ./configure \
36 LIBS="-lt4k_common" \
37 --prefix=/usr \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr
47 mkdir -p $fs/usr/share/locale
49 cp -a $install/usr/bin $fs/usr
50 cp -a $install/usr/share/tuxmath $fs/usr/share
52 # Set list of wanted locales in LOCALE_PACK
53 . $WOK/slitaz-i18n/stuff/locale-pack.conf
55 # Copy message files in wanted languages, if available
56 for lang in $LOCALE_PACK
57 do
58 [ -d $install/usr/share/locale/$lang ] || continue
59 cp -a $install/usr/share/locale/$lang $fs/usr/share/locale
60 done
61 }