wok annotate dd_rescue/receipt @ rev 24992

Up sip (4.19.25)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 14 18:19:29 2022 +0000 (2022-05-14)
parents bfabe25c21ff
children
rev   line source
erjo@621 1 # SliTaz package receipt.
erjo@621 2
erjo@621 3 PACKAGE="dd_rescue"
Hans-G?nter@24472 4 VERSION="1.99.11"
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@24472 10 REPOLOGY="dd-rescue"
Hans-G?nter@22638 11
pascal@22639 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
erjo@621 13 WGET_URL="http://www.garloff.de/kurt/linux/ddrescue/$TARBALL"
erjo@621 14
Hans-G?nter@22638 15 DEPENDS="openssl"
Hans-G?nter@22638 16 BUILD_DEPENDS="autoconf automake openssl-dev"
pascal@15579 17
pascal@24439 18 # What is the latest version available today?
pascal@24439 19 current_version()
pascal@24439 20 {
pascal@24439 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24439 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24439 23 }
pascal@24439 24
erjo@621 25 # Rules to configure and make the package.
erjo@621 26 compile_rules()
erjo@621 27 {
Hans-G?nter@22638 28 ./autogen.sh &&
Hans-G?nter@22638 29 make prefix=/usr &&
Hans-G?nter@22638 30 make install prefix=/usr
erjo@621 31 }
erjo@621 32
erjo@621 33 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@621 34 genpkg_rules()
erjo@621 35 {
erjo@621 36 mkdir -p $fs/usr/bin
Hans-G?nter@22638 37 cp -a $src/dd_rescue $fs/usr/bin
erjo@621 38 }