wok-next diff tpp/receipt @ rev 20503
Packing...
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Mar 16 06:03:21 2018 +0200 (2018-03-16) |
parents | cc6bbcf323fa |
children | d6378d455338 |
line diff
1.1 --- a/tpp/receipt Sat Oct 11 14:25:56 2014 +0200 1.2 +++ b/tpp/receipt Fri Mar 16 06:03:21 2018 +0200 1.3 @@ -1,38 +1,37 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="tpp" 1.8 VERSION="1.3.1" 1.9 CATEGORY="utilities" 1.10 -SHORT_DESC="Text presentation program." 1.11 +SHORT_DESC="Text presentation program" 1.12 MAINTAINER="paul@slitaz.org" 1.13 LICENSE="GPL2" 1.14 -DEPENDS="ruby ruby-ncurses ncurses" 1.15 +WEB_SITE="http://www.ngolde.de/tpp.html" 1.16 + 1.17 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 -WEB_SITE="http://www.ngolde.de/tpp.html" 1.19 WGET_URL="http://www.ngolde.de/download/$TARBALL" 1.20 1.21 -# Rules to configure and make the package. 1.22 -compile_rules() 1.23 -{ 1.24 +compile_rules() { 1.25 + # use debian patches and fixes 1.26 + patch -i $stuff/ruby19.patch 1.27 + patch -i $stuff/optional-x.patch 1.28 + 1.29 + cd examples 1.30 + for tppfile in *.tpp; do 1.31 + iconv -f ISO-8859-1 -t UTF-8 -o $tppfile.new $tppfile && 1.32 + touch -r $tppfile $tppfile.new && 1.33 + mv $tppfile.new $tppfile 1.34 + done 1.35 + 1.36 cd $src 1.37 - # use debian patches and fixes 1.38 - patch -i ../../stuff/ruby19.patch 1.39 - patch -i ../../stuff/optional-x.patch 1.40 - cd examples 1.41 - for tppfile in *.tpp; do 1.42 - iconv -f ISO-8859-1 -t UTF-8 -o $tppfile.new $tppfile && \ 1.43 - touch -r $tppfile $tppfile.new && \ 1.44 - mv $tppfile.new $tppfile 1.45 - done 1.46 - cd .. 1.47 - # make DESTDIR=$DESTDIR install 1.48 + mkdir -p \ 1.49 + $install/usr/bin/ \ 1.50 + $install/usr/share/doc/tpp/examples/ 1.51 + install $src/tpp.rb $install/usr/bin/tpp/ 1.52 + install -m644 $src/examples/* $install/usr/share/doc/tpp/examples/ 1.53 } 1.54 1.55 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.56 -genpkg_rules() 1.57 -{ 1.58 - mkdir -p $fs/usr/bin $fs/usr/share/doc/tpp/examples 1.59 - install $src/tpp.rb $fs/usr/bin/tpp 1.60 - install -m644 $src/examples/* $fs/usr/share/doc/tpp/examples 1.61 +genpkg_rules() { 1.62 + copy @std 1.63 + DEPENDS="ruby ruby-ncurses ncurses" 1.64 } 1.65 -