wok view tuxtype/receipt @ rev 11935

removed extensions from desktop files
author Samuel Trassare <samuel_trassare@yahoo.com>
date Wed Feb 29 20:31:31 2012 -0800 (2012-02-29)
parents 866fa2493b1b
children aa6d337302ab
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"
16 TAGS="education"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./configure \
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 }