wok-next diff tuxtype/receipt @ rev 20534
Clean default configure options when site script used.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 30 19:31:50 2018 +0300 (2018-03-30) |
parents | dfef8de3d270 |
children | d5aab818505e |
line diff
1.1 --- a/tuxtype/receipt Fri Jan 30 10:17:37 2015 +0100 1.2 +++ b/tuxtype/receipt Fri Mar 30 19:31:50 2018 +0300 1.3 @@ -1,56 +1,39 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="tuxtype" 1.8 -SOURCE="tuxtype_w_fonts" 1.9 VERSION="1.8.1" 1.10 CATEGORY="games" 1.11 -SHORT_DESC="Educational typing tutor for kids." 1.12 +SHORT_DESC="Educational typing tutor for kids" 1.13 MAINTAINER="claudinei@slitaz.org" 1.14 LICENSE="GPL2" 1.15 -TARBALL="$SOURCE-$VERSION.tar.gz" 1.16 WEB_SITE="http://tux4kids.alioth.debian.org" 1.17 + 1.18 +TARBALL="tuxtype_w_fonts-$VERSION.tar.gz" 1.19 WGET_URL="https://alioth.debian.org/frs/download.php/3270/$TARBALL" 1.20 1.21 -DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \ 1.22 -libsdl-net libsdl-pango" 1.23 BUILD_DEPENDS="libt4k_common-dev libsdl-dev librsvg-dev libsdl-image-dev \ 1.24 -libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev wget" 1.25 -TAGS="education" 1.26 +libsdl-mixer-dev libsdl-ttf-dev libsdl-net-dev libsdl-pango-dev" 1.27 1.28 -# Rules to configure and make the package. 1.29 -compile_rules() 1.30 -{ 1.31 - cd $src 1.32 - ./configure --sysconfdir=/etc \ 1.33 - --prefix=/usr \ 1.34 +compile_rules() { 1.35 + ./configure \ 1.36 --localstatedir=/var/games 1.37 $CONFIGURE_ARGS && 1.38 - make 1.39 + make || return 1 1.40 + 1.41 # Adding the games group satisfies the install script. 1.42 - addgroup games 1.43 - make DESTDIR=$DESTDIR install 1.44 + addgroup games 1.45 + make DESTDIR=$DESTDIR install 1.46 # We don't need to leave this behind in the build environment. 1.47 delgroup games 1.48 } 1.49 1.50 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.51 -genpkg_rules() 1.52 -{ 1.53 - mkdir -p $fs/usr/share $fs/var/games/tuxtype/words 1.54 - cp -a $install/usr/bin $fs/usr 1.55 - cp -a $install/usr/share/tuxtype $fs/usr/share 1.56 - 1.57 - for lang in de es fr pt; do 1.58 - mkdir -p $fs/usr/share/locale/$lang/LC_MESSAGES 1.59 - cp -a $install/usr/share/locale/$lang/LC_MESSAGES/tuxtype.mo \ 1.60 - $fs/usr/share/locale/$lang/LC_MESSAGES 1.61 - done 1.62 - 1.63 - cp -ar $install/usr $fs 1.64 +genpkg_rules() { 1.65 + copy @std *.mo 1.66 + DEPENDS="libt4k_common libsdl librsvg libsdl-image libsdl-mixer libsdl-ttf \ 1.67 + libsdl-net libsdl-pango" 1.68 + TAGS="education" 1.69 } 1.70 1.71 -post_install() 1.72 -{ 1.73 - echo "Adding games group if not already created:" 1.74 +post_install() { 1.75 chroot "$1/" addgroup games 1.76 }