# SliTaz package receipt.

PACKAGE="testdisk"
VERSION="6.13"
CATEGORY="system-tools"
SHORT_DESC="Data recovery tools (testdisk + photorec)."
MAINTAINER="pankso@slitaz.org"
DEPENDS="e2fsprogs ncurses jpeg krb5 zlib libcomerr3 ncursesw"
BUILD_DEPENDS="e2fsprogs-dev ncurses-dev jpeg-dev"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://www.cgsecurity.org/wiki/TestDisk"
WGET_URL="http://www.cgsecurity.org/$TARBALL"
TAGS="recovery rescue"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	grep -qs 'define u8' src/hdaccess.c ||
	sed -i 's|#include <scsi/scsi.h>|#define u8 __u8\n&|' src/hdaccess.c
	./configure $CONFIGURE_ARGS &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $_pkg/usr/bin $fs/usr
}