wok view tuxtype/receipt @ rev 15836

transmission: create missing VERSION
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jan 25 11:21:22 2014 +0000 (2014-01-25)
parents aa6d337302ab
children dfef8de3d270
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 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="http://tux4kids.alioth.debian.org"
12 WGET_URL="https://alioth.debian.org/frs/download.php/3270/$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 cd $src
24 ./configure --sysconfdir=/etc \
25 --prefix=/usr \
26 --localstatedir=/var/games
27 $CONFIGURE_ARGS &&
28 make
29 # Adding the games group satisfies the install script.
30 addgroup games
31 make DESTDIR=$DESTDIR install
32 # We don't need to leave this behind in the build environment.
33 delgroup games
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share $fs/var/games/tuxtype/words
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/tuxtype $fs/usr/share
43 for lang in de es fr pt; do
44 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
45 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxtype.mo \
46 $fs/usr/share/locale/$lang/LC_MESSAGES
47 done
49 cp -ar $install/usr $fs
50 }
52 post_install()
53 {
54 echo "Adding games group if not already created:"
55 addgroup games
56 }