wok annotate lziprecover/receipt @ rev 25770

dool,fake-hwclock,gtkam,xfce4-*-plugin,xlogo: add current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 06 11:29:23 2024 +0000 (2 months ago)
parents 1c75fb23b954
children
rev   line source
pascal@20401 1 # SliTaz package receipt.
pascal@20401 2
pascal@20401 3 PACKAGE="lziprecover"
Hans-G?nter@24874 4 VERSION="1.23"
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"
Hans-G?nter@24874 12 WGET_URL="https://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@25610 18 # What is the latest version available today?
pascal@24100 19 current_version()
pascal@24100 20 {
pascal@24100 21 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@25610 22 sed '/>lziprecover-/!d;/tar/!d;s|.*lziprecover-||;s|.tar.*||' | sort -Vr | sed q
pascal@24100 23 }
pascal@24100 24
pascal@20401 25 # Rules to configure and make the package.
pascal@20401 26 compile_rules()
pascal@20401 27 {
pascal@20402 28 mkdir -p $DESTDIR/usr/share/doc
Hans-G?nter@21408 29 cp README $DESTDIR/usr/share/doc
Hans-G?nter@21408 30
Hans-G?nter@21408 31 ./configure \
Hans-G?nter@21408 32 --prefix=/usr \
Hans-G?nter@21408 33 $CONFIGURE_ARGS &&
Hans-G?nter@24874 34 make &&
Hans-G?nter@24874 35 make install DESTDIR=$DESTDIR
pascal@20401 36 }
pascal@20401 37
pascal@20401 38 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@20401 39 genpkg_rules()
pascal@20401 40 {
Hans-G?nter@24874 41 cook_copy_folders bin
pascal@20401 42 }