wok-6.x view tuxmath/receipt @ rev 25163
updated python-bcrypt (3.1.7 -> 3.2.2)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Jul 01 10:37:34 2022 +0100 (2022-07-01) |
parents | b78e79c31b1f |
children |
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://github.com/tux4kids/tuxmath/archive/refs/tags/upstream/$VERSION.tar.gz"
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 }