wok-6.x view tpp/receipt @ rev 16792

Add libjson
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 02 20:52:57 2014 +0200 (2014-07-02)
parents
children cc6bbcf323fa
line source
1 # SliTaz package receipt.
3 PACKAGE="tpp"
4 VERSION="1.3.1"
5 CATEGORY="utilities"
6 SHORT_DESC="Text presentation program."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="ruby ruby-ncurses ncurses"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.ngolde.de/tpp.html"
11 WGET_URL="http://www.ngolde.de/download/$TARBALL"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 cd $src
17 # use debian patches and fixes
18 patch -i ../../stuff/ruby19.patch
19 patch -i ../../stuff/optional-x.patch
20 cd examples
21 for tppfile in *.tpp; do
22 iconv -f ISO-8859-1 -t UTF-8 -o $tppfile.new $tppfile && \
23 touch -r $tppfile $tppfile.new && \
24 mv $tppfile.new $tppfile
25 done
26 cd ..
27 # make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/bin $fs/usr/share/doc/tpp/examples
34 install $src/tpp.rb $fs/usr/bin/tpp
35 install -m644 $src/examples/* $fs/usr/share/doc/tpp/examples
36 }