wok view afio/receipt @ rev 24385

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Feb 07 11:38:23 2022 +0000 (2022-02-07)
parents 804a303f31dc
children 00e3b45c063b
line source
1 # SliTaz package receipt.
3 PACKAGE="afio"
4 VERSION="2.5.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Archiver program for Linux/UNIX."
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="LGPL"
9 WEB_SITE="https://github.com/kholtman/afio"
10 TARBALL="$PACKAGE-$VERSION.tgz"
11 WGET_URL="http://members.chello.nl/~k.holtman/$TARBALL"
13 DEPENDS=""
14 BUILD_DEPENDS=""
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - $WEB_SITE/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 make
28 cook_pick_manpages $src/afio.1
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/bin
35 cp -a $src/afio $fs/usr/bin
36 }