wok-current annotate lzip/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 4baf58c71390
children 1c75fb23b954
rev   line source
mimas@2031 1 # SliTaz package receipt.
mimas@2031 2
mimas@2031 3 PACKAGE="lzip"
pascal@21204 4 VERSION="1.21"
mimas@2031 5 CATEGORY="utilities"
mimas@2031 6 SHORT_DESC="LZMA compressor"
mimas@2031 7 MAINTAINER="mimas@slitaz.org"
pascal@17404 8 LICENSE="GPL2"
mimas@2031 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
mimas@2031 10 WEB_SITE="http://www.nongnu.org/lzip/lzip.html"
slaxemulator@6454 11 WGET_URL="http://download.savannah.gnu.org/releases/lzip/$TARBALL"
pascal@19091 12 HOST_ARCH="i486 arm"
mimas@2031 13
pascal@14133 14 DEPENDS="gcc-lib-base"
pascal@14133 15
pascal@24102 16 current_version()
pascal@24102 17 {
pascal@24102 18 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24102 19 sed '/>lzip-/!d;s|.*lzip-||;s|.tar.*||' | sed '$!d'
pascal@24102 20 }
pascal@24102 21
mimas@2031 22 # Rules to configure and make the package.
mimas@2031 23 compile_rules()
mimas@2031 24 {
pascal@20402 25 mkdir -p $DESTDIR/usr/share/doc
pascal@20402 26 cp README $DESTDIR/usr/share/doc
pascal@5003 27 ./configure --prefix=/usr $CONFIGURE_ARGS &&
pascal@5003 28 make &&
pascal@14133 29 make DESTDIR=$DESTDIR install
mimas@2031 30 }
mimas@2031 31
mimas@2031 32 # Rules to gen a SliTaz package suitable for Tazpkg.
mimas@2031 33 genpkg_rules()
mimas@2031 34 {
mimas@2031 35 mkdir -p $fs/usr
pascal@14133 36 cp -a $install/usr/bin $fs/usr
erjo@4281 37 # cp $src/lzdiff $fs/usr/bin
erjo@4281 38 # cp $src/lzgrep $fs/usr/bin
mimas@2031 39 }
mimas@2031 40