wok view zip/receipt @ rev 25532

Add some current_version()
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 27 10:46:05 2023 +0000 (20 months ago)
parents 7dd01dedad38
children c3a6f662a1c1
line source
1 # SliTaz package receipt.
3 PACKAGE="zip"
4 VERSION="3.0"
5 CATEGORY="utilities"
6 SHORT_DESC="Compressor utilities compatible with the DOS PKZIP."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="other"
9 TARBALL="$PACKAGE${VERSION//./}.tgz"
10 WEB_SITE="https://infozip.sourceforge.net/"
11 WGET_URL="ftp://ftp.info-zip.org/pub/infozip/src/$TARBALL"
12 TAGS="archive compression"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - $WEB_SITE/Zip.html 2>/dev/null | \
18 sed '/released/!d;s|.*Zip ||;s|<.*||;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 make -f unix/Makefile generic_gcc
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/bin
31 cp -a $src/zip $fs/usr/bin
32 cp -a $src/zipcloak $fs/usr/bin
33 cp -a $src/zipnote $fs/usr/bin
34 cp -a $src/zipsplit $fs/usr/bin
35 }