wok annotate zip/receipt @ rev 24336
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Jan 28 18:19:21 2022 +0000 (2022-01-28) |
parents | 56ee356284c6 |
children | 7dd01dedad38 |
rev | line source |
---|---|
pankso@11 | 1 # SliTaz package receipt. |
pankso@11 | 2 |
pankso@11 | 3 PACKAGE="zip" |
slaxemulator@7190 | 4 VERSION="3.0" |
pankso@211 | 5 CATEGORY="utilities" |
pankso@11 | 6 SHORT_DESC="Compressor utilities compatible with the DOS PKZIP." |
pankso@11 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15361 | 8 LICENSE="other" |
al@19001 | 9 TARBALL="$PACKAGE${VERSION//./}.tgz" |
pascal@23797 | 10 WEB_SITE="http://infozip.sourceforge.net/" |
mallory@2683 | 11 WGET_URL="ftp://ftp.info-zip.org/pub/infozip/src/$TARBALL" |
jozee@4978 | 12 TAGS="archive compression" |
pankso@11 | 13 |
pascal@24102 | 14 current_version() |
pascal@24102 | 15 { |
pascal@24102 | 16 wget -O - $WEB_SITE/Zip.html 2>/dev/null | \ |
pascal@24102 | 17 sed '/released/!d;s|.*Zip ||;s|<.*||;q' |
pascal@24102 | 18 } |
pascal@24102 | 19 |
pankso@11 | 20 # Rules to configure and make the package. |
pankso@11 | 21 compile_rules() |
pankso@11 | 22 { |
pankso@11 | 23 make -f unix/Makefile generic_gcc |
pankso@11 | 24 } |
pankso@11 | 25 |
pankso@11 | 26 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@11 | 27 genpkg_rules() |
pankso@11 | 28 { |
pankso@11 | 29 mkdir -p $fs/usr/bin |
pankso@11 | 30 cp -a $src/zip $fs/usr/bin |
pankso@11 | 31 cp -a $src/zipcloak $fs/usr/bin |
pankso@11 | 32 cp -a $src/zipnote $fs/usr/bin |
pankso@11 | 33 cp -a $src/zipsplit $fs/usr/bin |
pankso@11 | 34 } |