# SliTaz package receipt. PACKAGE="dd_rescue" VERSION="1.99.11" CATEGORY="system-tools" SHORT_DESC="Block device copy tools." MAINTAINER="erjo@slitaz.org" LICENSE="GPL2" WEB_SITE="http://www.garloff.de/kurt/linux/ddrescue/" REPOLOGY="dd-rescue" TARBALL="$PACKAGE-$VERSION.tar.bz2" WGET_URL="http://www.garloff.de/kurt/linux/ddrescue/$TARBALL" DEPENDS="openssl" BUILD_DEPENDS="autoconf automake openssl-dev" # What is the latest version available today? current_version() { wget -O - $WEB_SITE 2>/dev/null | \ sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { ./autogen.sh && make prefix=/usr && make install prefix=/usr } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin cp -a $src/dd_rescue $fs/usr/bin }