wok-6.x annotate tuxtype/receipt @ rev 25211
updated python-paho-mqtt (1.5.0 -> 1.6.1)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 13 15:10:55 2022 +0100 (2022-07-13) |
parents | 7c0170dd3ecc |
children | 8ea0030e77cb |
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" |
pascal@20683 | 11 WEB_SITE="http://archive.wikiwix.com/cache/?url=http%3A%2F%2Ftuxtype.sourceforge.net%2F" |
pascal@24976 | 12 WGET_URL="https://github.com/tux4kids/tuxtype/archive/upstream/$VERSION.tar.gz" |
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 |
pascal@24535 | 20 # What is the latest version available today? |
pascal@24535 | 21 current_version() |
pascal@24535 | 22 { |
pascal@24535 | 23 wget -O - https://github.com/tux4kids/tuxtype/tags 2>/dev/null | \ |
pascal@24535 | 24 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24535 | 25 } |
pascal@24535 | 26 |
claudinei@3313 | 27 # Rules to configure and make the package. |
claudinei@3313 | 28 compile_rules() |
claudinei@3313 | 29 { |
claudinei@3313 | 30 cd $src |
gokhlayeh@12073 | 31 ./configure --sysconfdir=/etc \ |
claudinei@3313 | 32 --prefix=/usr \ |
samuel_trassare@11760 | 33 --localstatedir=/var/games |
claudinei@3313 | 34 $CONFIGURE_ARGS && |
samuel_trassare@11760 | 35 make |
samuel_trassare@11760 | 36 # Adding the games group satisfies the install script. |
samuel_trassare@11760 | 37 addgroup games |
pascal@15590 | 38 make DESTDIR=$DESTDIR install |
samuel_trassare@11760 | 39 # We don't need to leave this behind in the build environment. |
samuel_trassare@11760 | 40 delgroup games |
claudinei@3313 | 41 } |
claudinei@3313 | 42 |
claudinei@3313 | 43 # Rules to gen a SliTaz package suitable for Tazpkg. |
claudinei@3313 | 44 genpkg_rules() |
claudinei@3313 | 45 { |
claudinei@4676 | 46 mkdir -p $fs/usr/share $fs/var/games/tuxtype/words |
pascal@15590 | 47 cp -a $install/usr/bin $fs/usr |
pascal@15590 | 48 cp -a $install/usr/share/tuxtype $fs/usr/share |
claudinei@3313 | 49 |
claudinei@3313 | 50 for lang in de es fr pt; do |
claudinei@3313 | 51 mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES |
pascal@15590 | 52 cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxtype.mo \ |
claudinei@3313 | 53 $fs/usr/share/locale/$lang/LC_MESSAGES |
claudinei@3313 | 54 done |
samuel_trassare@11760 | 55 |
pascal@15590 | 56 cp -ar $install/usr $fs |
claudinei@3313 | 57 } |
claudinei@3313 | 58 |
samuel_trassare@11760 | 59 post_install() |
samuel_trassare@11760 | 60 { |
pascal@20319 | 61 echo |
samuel_trassare@11760 | 62 echo "Adding games group if not already created:" |
pascal@17552 | 63 chroot "$1/" addgroup games |
samuel_trassare@11760 | 64 } |