wok annotate tpp/receipt @ rev 24546
updated file, libmagic, libmagic-dev and python-magic (5.38 -> 5.41)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 25 07:20:29 2022 +0100 (2022-02-25) |
parents | cc6bbcf323fa |
children |
rev | line source |
---|---|
paul@16778 | 1 # SliTaz package receipt. |
paul@16778 | 2 |
paul@16778 | 3 PACKAGE="tpp" |
paul@16778 | 4 VERSION="1.3.1" |
paul@16778 | 5 CATEGORY="utilities" |
paul@16778 | 6 SHORT_DESC="Text presentation program." |
paul@16778 | 7 MAINTAINER="paul@slitaz.org" |
pascal@17216 | 8 LICENSE="GPL2" |
paul@16778 | 9 DEPENDS="ruby ruby-ncurses ncurses" |
paul@16778 | 10 TARBALL="$PACKAGE-$VERSION.tar.gz" |
paul@16778 | 11 WEB_SITE="http://www.ngolde.de/tpp.html" |
paul@16778 | 12 WGET_URL="http://www.ngolde.de/download/$TARBALL" |
paul@16778 | 13 |
pascal@24462 | 14 # What is the latest version available today? |
pascal@24462 | 15 current_version() |
pascal@24462 | 16 { |
pascal@24462 | 17 wget -O - $WEB_SITE 2>/dev/null | \ |
pascal@24462 | 18 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q |
pascal@24462 | 19 } |
pascal@24462 | 20 |
paul@16778 | 21 # Rules to configure and make the package. |
paul@16778 | 22 compile_rules() |
paul@16778 | 23 { |
paul@16778 | 24 cd $src |
paul@16778 | 25 # use debian patches and fixes |
paul@16778 | 26 patch -i ../../stuff/ruby19.patch |
paul@16778 | 27 patch -i ../../stuff/optional-x.patch |
paul@16778 | 28 cd examples |
paul@16778 | 29 for tppfile in *.tpp; do |
paul@16778 | 30 iconv -f ISO-8859-1 -t UTF-8 -o $tppfile.new $tppfile && \ |
paul@16778 | 31 touch -r $tppfile $tppfile.new && \ |
paul@16778 | 32 mv $tppfile.new $tppfile |
paul@16778 | 33 done |
paul@16778 | 34 cd .. |
paul@16778 | 35 # make DESTDIR=$DESTDIR install |
paul@16778 | 36 } |
paul@16778 | 37 |
paul@16778 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@16778 | 39 genpkg_rules() |
paul@16778 | 40 { |
paul@16778 | 41 mkdir -p $fs/usr/bin $fs/usr/share/doc/tpp/examples |
paul@16778 | 42 install $src/tpp.rb $fs/usr/bin/tpp |
paul@16778 | 43 install -m644 $src/examples/* $fs/usr/share/doc/tpp/examples |
paul@16778 | 44 } |
paul@16778 | 45 |