wok view tpp/receipt @ rev 24779
thttpd: race condition
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Mar 19 18:08:11 2022 +0000 (2022-03-19) |
parents | cc6bbcf323fa |
children |
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 LICENSE="GPL2"
9 DEPENDS="ruby ruby-ncurses ncurses"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.ngolde.de/tpp.html"
12 WGET_URL="http://www.ngolde.de/download/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE 2>/dev/null | \
18 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 # use debian patches and fixes
26 patch -i ../../stuff/ruby19.patch
27 patch -i ../../stuff/optional-x.patch
28 cd examples
29 for tppfile in *.tpp; do
30 iconv -f ISO-8859-1 -t UTF-8 -o $tppfile.new $tppfile && \
31 touch -r $tppfile $tppfile.new && \
32 mv $tppfile.new $tppfile
33 done
34 cd ..
35 # make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/bin $fs/usr/share/doc/tpp/examples
42 install $src/tpp.rb $fs/usr/bin/tpp
43 install -m644 $src/examples/* $fs/usr/share/doc/tpp/examples
44 }