wok annotate help2man/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 | a32fefa4d43a |
children | 7500c38695e9 |
rev | line source |
---|---|
pascal@13303 | 1 # SliTaz package receipt. |
pascal@13303 | 2 |
pascal@13303 | 3 PACKAGE="help2man" |
Hans-G?nter@22928 | 4 VERSION="1.47.12" |
pascal@13303 | 5 CATEGORY="development" |
pascal@13303 | 6 SHORT_DESC="Produces simple manual pages." |
pascal@13303 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14999 | 8 LICENSE="GPL3" |
Hans-G?nter@21034 | 9 WEB_SITE="https://www.gnu.org/software/$PACKAGE" |
Hans-G?nter@21034 | 10 |
Hans-G?nter@21034 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@13303 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@13303 | 13 |
pascal@13303 | 14 BUILD_DEPENDS="perl" |
pascal@13303 | 15 DEPENDS="perl" |
pascal@13303 | 16 |
pascal@24336 | 17 # What is the latest version available today? |
pascal@24336 | 18 current_version() |
pascal@24336 | 19 { |
pascal@24336 | 20 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 21 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 22 } |
pascal@24336 | 23 |
pascal@13303 | 24 # Rules to configure and make the package. |
pascal@13303 | 25 compile_rules() |
pascal@13303 | 26 { |
Hans-G?nter@21034 | 27 ./configure \ |
Hans-G?nter@21034 | 28 --prefix=/usr \ |
Hans-G?nter@21034 | 29 --infodir=/usr/share/info \ |
Hans-G?nter@21034 | 30 --mandir=/usr/share/man \ |
Hans-G?nter@21034 | 31 $CONFIGURE_ARGS && |
Hans-G?nter@22928 | 32 make && |
pascal@13303 | 33 make DESTDIR=$DESTDIR install |
pascal@13303 | 34 } |
pascal@13303 | 35 |
pascal@13303 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@13303 | 37 genpkg_rules() |
pascal@13303 | 38 { |
pascal@13303 | 39 mkdir -p $fs/usr |
Hans-G?nter@21034 | 40 |
pascal@13303 | 41 cp -a $install/usr/bin $fs/usr |
pascal@13303 | 42 cp -a $install/usr/lib $fs/usr |
pascal@13303 | 43 } |