wok annotate dd_rescue/receipt @ rev 24439

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 13 18:01:32 2022 +0000 (2022-02-13)
parents ce01bc78a7aa
children 5dbf835a322f
rev   line source
erjo@621 1 # SliTaz package receipt.
erjo@621 2
erjo@621 3 PACKAGE="dd_rescue"
Hans-G?nter@22638 4 VERSION="1.99.8"
erjo@621 5 CATEGORY="system-tools"
erjo@621 6 SHORT_DESC="Block device copy tools."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pascal@15579 8 LICENSE="GPL2"
Hans-G?nter@22638 9 WEB_SITE="http://www.garloff.de/kurt/linux/ddrescue/"
Hans-G?nter@22638 10
pascal@22639 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@621 12 WGET_URL="http://www.garloff.de/kurt/linux/ddrescue/$TARBALL"
erjo@621 13
Hans-G?nter@22638 14 DEPENDS="openssl"
Hans-G?nter@22638 15 BUILD_DEPENDS="autoconf automake openssl-dev"
pascal@15579 16
pascal@24439 17 # What is the latest version available today?
pascal@24439 18 current_version()
pascal@24439 19 {
pascal@24439 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24439 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24439 22 }
pascal@24439 23
erjo@621 24 # Rules to configure and make the package.
erjo@621 25 compile_rules()
erjo@621 26 {
Hans-G?nter@22638 27 ./autogen.sh &&
Hans-G?nter@22638 28 make prefix=/usr &&
Hans-G?nter@22638 29 make install prefix=/usr
erjo@621 30 }
erjo@621 31
erjo@621 32 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@621 33 genpkg_rules()
erjo@621 34 {
erjo@621 35 mkdir -p $fs/usr/bin
Hans-G?nter@22638 36 cp -a $src/dd_rescue $fs/usr/bin
erjo@621 37 }