wok view rgzip/receipt @ rev 24713

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 14 18:23:09 2022 +0000 (2022-03-14)
parents f13bd223c231
children 1e09c4c56491
line source
1 # SliTaz package receipt.
3 PACKAGE="rgzip"
4 VERSION="0"
5 CATEGORY="system-tools"
6 SHORT_DESC="Rsync friendly gzip."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL3"
9 TARBALL="$PACKAGE.c"
10 WEB_SITE="http://svana.org/kleptog/rgzip.html"
11 WGET_URL="http://svana.org/kleptog/$TARBALL"
12 DEPENDS="busybox" # gzip
13 TAGS="compression"
15 # What is the latest version available today?
16 current_version()
17 {
18 wget -O - $WEB_SITE 2>/dev/null | \
19 sed '/[0-9], [12][0-9]/!d;s|.*|"&"|' | xargs date +%Y%m%d -d
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 make rgzip
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/bin
33 cp $src/rgzip $fs/usr/bin
34 }