wok-current annotate lziprecover/receipt @ rev 24445
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 14:14:23 2022 +0000 (2022-02-14) |
parents | 9d8df9f05e92 |
children | 1c75fb23b954 |
rev | line source |
---|---|
pascal@20401 | 1 # SliTaz package receipt. |
pascal@20401 | 2 |
pascal@20401 | 3 PACKAGE="lziprecover" |
pascal@24100 | 4 VERSION="1.22" |
pascal@20401 | 5 CATEGORY="utilities" |
Hans-G?nter@21408 | 6 SHORT_DESC="LZIP files recovery tool." |
pascal@20401 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@20401 | 8 LICENSE="GPL2" |
Hans-G?nter@21408 | 9 WEB_SITE="https://www.nongnu.org/lzip/lziprecover.html" |
Hans-G?nter@21408 | 10 |
pascal@20401 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20401 | 12 WGET_URL="http://download.savannah.gnu.org/releases/lzip/lziprecover/$TARBALL" |
pascal@20401 | 13 |
pascal@20401 | 14 DEPENDS="gcc-lib-base" |
pascal@20401 | 15 |
Hans-G?nter@21408 | 16 HOST_ARCH="i486 arm" |
Hans-G?nter@21408 | 17 |
pascal@24100 | 18 current_version() |
pascal@24100 | 19 { |
pascal@24100 | 20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24100 | 21 sed '/tar/!d;s|.*recover-\(.*\).tar.*".*|\1|' | sed '$!d' |
pascal@24100 | 22 } |
pascal@24100 | 23 |
pascal@20401 | 24 # Rules to configure and make the package. |
pascal@20401 | 25 compile_rules() |
pascal@20401 | 26 { |
pascal@20402 | 27 mkdir -p $DESTDIR/usr/share/doc |
Hans-G?nter@21408 | 28 cp README $DESTDIR/usr/share/doc |
Hans-G?nter@21408 | 29 |
Hans-G?nter@21408 | 30 ./configure \ |
Hans-G?nter@21408 | 31 --prefix=/usr \ |
Hans-G?nter@21408 | 32 $CONFIGURE_ARGS && |
Hans-G?nter@21408 | 33 make -j 1 && |
pascal@20401 | 34 make DESTDIR=$DESTDIR install |
pascal@20401 | 35 } |
pascal@20401 | 36 |
pascal@20401 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@20401 | 38 genpkg_rules() |
pascal@20401 | 39 { |
pascal@20401 | 40 mkdir -p $fs/usr |
pascal@20401 | 41 cp -a $install/usr/bin $fs/usr |
pascal@20401 | 42 } |