wok-6.x view tuxmath/receipt @ rev 18077

Rebuild Python packages to remove "*.pyc" files from package.lists (part 1).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 22 17:34:18 2015 +0300 (2015-05-22)
parents 191b99ca9dc2
children 6135577f4d08
line source
1 # SliTaz package receipt.
3 PACKAGE="tuxmath"
4 SOURCE="tuxmath_w_fonts"
5 VERSION="2.0.3"
6 CATEGORY="games"
7 SHORT_DESC="Arcade game that helps kids practice their math facts."
8 MAINTAINER="claudinei@slitaz.org"
9 LICENSE="GPL3"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://tux4kids.alioth.debian.org"
12 WGET_URL="https://alioth.debian.org/frs/download.php/3571/$TARBALL"
14 DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \
15 libsdl-net libsdl-pango"
16 BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \
17 libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget"
18 TAGS="education"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 #patch -p1 -i $stuff/SDL_extras.c.patch
24 ./configure LIBS="-lt4k_common" \
25 --prefix=/usr \
26 $CONFIGURE_ARGS &&
27 make &&
28 make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr $fs/usr/share
35 cp -a $install/usr/bin $fs/usr
36 cp -a $install/usr/share/tuxmath $fs/usr/share
38 for lang in de es fr pt_BR zh_CN; do
39 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
40 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxmath.mo \
41 $fs/usr/share/locale/$lang/LC_MESSAGES
42 done
43 }