# SliTaz package receipt.

PACKAGE="tslib"
VERSION="1.0"
CATEGORY="development"
SHORT_DESC="Abstraction layer for touchscreen panel events."
MAINTAINER="pascal.bellard@slitaz.org"
WEB_SITE="http://tslib.berlios.de/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="http://download.berlios.de/$PACKAGE/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./autogen.sh
	./configure --prefix=/usr --infodir=/usr/share/info \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		$CONFIGURE_ARGS &&
	make &&
	make DESTDIR=$DESTDIR install
}

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