wok-6.x annotate sharutils/receipt @ rev 24694
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 12:06:14 2022 +0000 (2022-03-13) |
parents | d572a56a92d1 |
children |
rev | line source |
---|---|
pascal@17528 | 1 # SliTaz package receipt. |
pascal@17528 | 2 |
pascal@17528 | 3 PACKAGE="sharutils" |
Hans-G?nter@21908 | 4 VERSION="4.15.2" |
pascal@17528 | 5 CATEGORY="utilities" |
Hans-G?nter@21908 | 6 SHORT_DESC="The GNU shar utilities for packaging and unpackaging shell archives." |
pascal@17528 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17528 | 8 LICENSE="GPL3" |
Hans-G?nter@21908 | 9 WEB_SITE="https://www.gnu.org/software/sharutils/" |
Hans-G?nter@21908 | 10 |
pascal@17528 | 11 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pascal@17528 | 12 WGET_URL="$GNU_MIRROR/$PACKAGE/$TARBALL" |
pascal@17528 | 13 |
pascal@24336 | 14 # What is the latest version available today? |
pascal@24336 | 15 current_version() |
pascal@24336 | 16 { |
pascal@24336 | 17 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24336 | 18 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24336 | 19 } |
pascal@24336 | 20 |
pascal@17528 | 21 # Rules to configure and make the package. |
pascal@17528 | 22 compile_rules() |
pascal@17528 | 23 { |
Hans-G?nter@21908 | 24 ./configure \ |
Hans-G?nter@21908 | 25 --prefix=/usr \ |
Hans-G?nter@21908 | 26 --infodir=/usr/share/info \ |
Hans-G?nter@21908 | 27 --mandir=/usr/share/man \ |
pascal@17528 | 28 $CONFIGURE_ARGS && |
pascal@17528 | 29 make && |
pascal@17528 | 30 make DESTDIR=$DESTDIR install |
pascal@17528 | 31 } |
pascal@17528 | 32 |
pascal@17528 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17528 | 34 genpkg_rules() |
pascal@17528 | 35 { |
pascal@17528 | 36 mkdir -p $fs/usr |
pascal@17528 | 37 cp -a $install/usr/bin $fs/usr |
pascal@17528 | 38 } |