# SliTaz package receipt.

PACKAGE="sleuthkit"
VERSION="3.2.3"
CATEGORY="misc"
SHORT_DESC="File system and media management forensic analysis tools (supports NTFS, FAT, UFS1/2, FFS, Ext2 and Ext3)"
MAINTAINER="slaxemulator@gmail.com"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.sleuthkit.org/sleuthkit"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="perl"
BUILD_DEPENDS="perl sqlite-dev libpthread-stubs"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		--without-libewf \
		--without-afflib \
		$CONFIGURE_ARGS &&
	make LDFLAGS+="-lpthread -ldl" && make DESTDIR=$DESTDIR install
}

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