wok annotate tuxtype/receipt @ rev 14460

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