wok annotate f3/receipt @ rev 24102
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 17 10:35:57 2021 +0000 (2021-09-17) |
parents | b10d41313e54 |
children | ac8ca9758df1 |
rev | line source |
---|---|
paul@16074 | 1 # SliTaz package receipt. |
paul@16074 | 2 |
paul@16074 | 3 PACKAGE="f3" |
Hans-G?nter@22710 | 4 VERSION="7.2" |
paul@16074 | 5 CATEGORY="utilities" |
paul@16074 | 6 SHORT_DESC="An alternative to h2testw." |
paul@16074 | 7 MAINTAINER="paul@slitaz.org" |
paul@16074 | 8 LICENSE="GPL3" |
pascal@23193 | 9 WEB_SITE="https://github.com/AltraMayor/f3" |
Hans-G?nter@22710 | 10 |
Hans-G?nter@22710 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22710 | 12 WGET_URL="https://github.com/AltraMayor/f3/archive/v$VERSION.tar.gz" |
paul@16074 | 13 |
paul@16074 | 14 DEPENDS="" |
Hans-G?nter@22710 | 15 BUILD_DEPENDS="" |
paul@16074 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
paul@16074 | 23 # Rules to configure and make the package. |
paul@16074 | 24 compile_rules() |
paul@16074 | 25 { |
Hans-G?nter@22710 | 26 make PREFIX=/usr && |
Hans-G?nter@22710 | 27 make install PREFIX=/usr |
paul@16074 | 28 } |
paul@16074 | 29 |
paul@16074 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@16074 | 31 genpkg_rules() |
paul@16074 | 32 { |
Hans-G?nter@22710 | 33 mkdir -p $fs/usr |
Hans-G?nter@22710 | 34 cp -a $install/usr/bin $fs/usr |
paul@16074 | 35 } |