wok-6.x annotate tuxtype/receipt @ rev 15792

linux: CONFIG_I2C_EG20T=m
author Richard Dunbar <mojo@slitaz.org>
date Fri Jan 17 10:28:33 2014 +0000 (2014-01-17)
parents aa6d337302ab
children dfef8de3d270
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"
pascal@15590 9 LICENSE="GPL2"
claudinei@3313 10 TARBALL="$SOURCE-$VERSION.tar.gz"
claudinei@3313 11 WEB_SITE="http://tux4kids.alioth.debian.org"
samuel_trassare@11760 12 WGET_URL="https://alioth.debian.org/frs/download.php/3270/$TARBALL"
pascal@15590 13
samuel_trassare@11760 14 DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \
samuel_trassare@11760 15 libsdl-net libsdl-pango"
samuel_trassare@11760 16 BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \
gokhlayeh@12073 17 libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget"
jozee@4973 18 TAGS="education"
claudinei@3313 19
claudinei@3313 20 # Rules to configure and make the package.
claudinei@3313 21 compile_rules()
claudinei@3313 22 {
claudinei@3313 23 cd $src
gokhlayeh@12073 24 ./configure --sysconfdir=/etc \
claudinei@3313 25 --prefix=/usr \
samuel_trassare@11760 26 --localstatedir=/var/games
claudinei@3313 27 $CONFIGURE_ARGS &&
samuel_trassare@11760 28 make
samuel_trassare@11760 29 # Adding the games group satisfies the install script.
samuel_trassare@11760 30 addgroup games
pascal@15590 31 make DESTDIR=$DESTDIR install
samuel_trassare@11760 32 # We don't need to leave this behind in the build environment.
samuel_trassare@11760 33 delgroup games
claudinei@3313 34 }
claudinei@3313 35
claudinei@3313 36 # Rules to gen a SliTaz package suitable for Tazpkg.
claudinei@3313 37 genpkg_rules()
claudinei@3313 38 {
claudinei@4676 39 mkdir -p $fs/usr/share $fs/var/games/tuxtype/words
pascal@15590 40 cp -a $install/usr/bin $fs/usr
pascal@15590 41 cp -a $install/usr/share/tuxtype $fs/usr/share
claudinei@3313 42
claudinei@3313 43 for lang in de es fr pt; do
claudinei@3313 44 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
pascal@15590 45 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxtype.mo \
claudinei@3313 46 $fs/usr/share/locale/$lang/LC_MESSAGES
claudinei@3313 47 done
samuel_trassare@11760 48
pascal@15590 49 cp -ar $install/usr $fs
claudinei@3313 50 }
claudinei@3313 51
samuel_trassare@11760 52 post_install()
samuel_trassare@11760 53 {
samuel_trassare@11760 54 echo "Adding games group if not already created:"
samuel_trassare@11760 55 addgroup games
samuel_trassare@11760 56 }