wok-6.x view tuxtype/receipt @ rev 14469

tazpkg: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu May 02 08:41:50 2013 +0200 (2013-05-02)
parents 0b2b9d1540d7
children 600aaedb561d
line source
1 # SliTaz package receipt.
3 PACKAGE="tuxtype"
4 SOURCE="tuxtype_w_fonts"
5 VERSION="1.8.1"
6 CATEGORY="games"
7 SHORT_DESC="Educational typing tutor for kids."
8 MAINTAINER="claudinei@slitaz.org"
9 TARBALL="$SOURCE-$VERSION.tar.gz"
10 WEB_SITE="http://tux4kids.alioth.debian.org"
11 WGET_URL="https://alioth.debian.org/frs/download.php/3270/$TARBALL"
12 DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \
13 libsdl-net libsdl-pango"
14 BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \
15 libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget"
16 TAGS="education"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure --sysconfdir=/etc \
24 --prefix=/usr \
25 --localstatedir=/var/games
26 $CONFIGURE_ARGS &&
27 make
28 # Adding the games group satisfies the install script.
29 addgroup games
30 make DESTDIR=$PWD/_pkg install
31 # We don't need to leave this behind in the build environment.
32 delgroup games
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share $fs/var/games/tuxtype/words
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $_pkg/usr/share/tuxtype $fs/usr/share
42 for lang in de es fr pt; do
43 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
44 cp -a $_pkg/usr/share/locale/$lang/LC_MESSAGES/tuxtype.mo \
45 $fs/usr/share/locale/$lang/LC_MESSAGES
46 done
48 cp -ar $_pkg/usr $fs
49 }
51 post_install()
52 {
53 echo "Adding games group if not already created:"
54 addgroup games
55 }