# SliTaz package receipt.

PACKAGE="libtdb"
VERSION="1.2.9"
CATEGORY="misc"
SHORT_DESC="A Trivia Database similar to GDBM but allows simultaneous commits"
MAINTAINER="slaxemulator@gmail.com"
SOURCE="tdb"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://tdb.samba.org/"
WGET_URL="http://samba.org/ftp/$SOURCE/$TARBALL"

DEPENDS=""
BUILD_DEPENDS="python-dev libxslt-dev docbook-xsl"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	sed -i 's#python2\.6\([^ ]*\)#python2.7\1 python2.6\1#' configure
	# Use system docbook.xsl
	_manstyle="/usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl"
	sed -i "s#http.*xsl#$_manstyle#" tdb.mk
	./configure && make && make install
}

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