wok view tuxtype/receipt @ rev 25438

Update some web_site
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Sep 01 11:12:31 2022 +0000 (2022-09-01)
parents 1805f71c5d9f
children
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="https://archive.wikiwix.com/cache/?url=http%3A%2F%2Ftuxtype.sourceforge.net%2F"
12 WGET_URL="https://github.com/tux4kids/tuxtype/archive/upstream/$VERSION.tar.gz"
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - https://github.com/tux4kids/tuxtype/tags 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 cd $src
31 ./configure --sysconfdir=/etc \
32 --prefix=/usr \
33 --localstatedir=/var/games
34 $CONFIGURE_ARGS &&
35 make
36 # Adding the games group satisfies the install script.
37 addgroup games
38 make DESTDIR=$DESTDIR install
39 # We don't need to leave this behind in the build environment.
40 delgroup games
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/share $fs/var/games/tuxtype/words
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/share/tuxtype $fs/usr/share
50 for lang in de es fr pt; do
51 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES
52 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxtype.mo \
53 $fs/usr/share/locale/$lang/LC_MESSAGES
54 done
56 cp -ar $install/usr $fs
57 }
59 post_install()
60 {
61 echo
62 echo "Adding games group if not already created:"
63 chroot "$1/" addgroup games
64 }