wok-6.x annotate tuxtype/receipt @ rev 21619
gcc83-lib-base: revert to gcc-lib-base post install
Previous post-install rules don't work for me producing error:
error: C compiler cannot create executables
on the another plain build when I previously used gcc83 & gcc83-lib-base to compile my other package
Previous post-install rules don't work for me producing error:
error: C compiler cannot create executables
on the another plain build when I previously used gcc83 & gcc83-lib-base to compile my other package
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat May 25 14:09:45 2019 +0300 (2019-05-25) |
parents | 6135577f4d08 |
children | 7c0170dd3ecc |
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" |
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 { |
pascal@20319 | 54 echo |
samuel_trassare@11760 | 55 echo "Adding games group if not already created:" |
pascal@17552 | 56 chroot "$1/" addgroup games |
samuel_trassare@11760 | 57 } |