# SliTaz package receipt.

PACKAGE="libconfuse"
SOURCE="confuse"
VERSION="2.7"
CATEGORY="misc"
SHORT_DESC="Configuration file parser library."
MAINTAINER="mallory@sweetpeople.org"
DEPENDS=""
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.nongnu.org/confuse/"
WGET_URL="http://savannah.nongnu.org/download/$SOURCE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS
	sed -i 's/ -Werror//' src/Makefile
	make && make DESTDIR=$PWD/_pkg install
}

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