# SliTaz package receipt.

PACKAGE="xorg-xf86-input-plpevtch"
VERSION="0.5.0"
CATEGORY="x-window"
SHORT_DESC="Xorg server driver for touchscreens."
MAINTAINER="pascal.bellard@slitaz.org"
DEPENDS="xorg-server"
BUILD_DEPENDS="xorg-server-dev"
SOURCE="xf86-input-plpevtch"
TARBALL="$SOURCE-$VERSION.tar.gz"
WEB_SITE="http://www.plop.at/en/touchscreen.html"
WGET_URL="http://download.plop.at/files/plpevtch/$TARBALL"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure \
    	--prefix=/usr \
    	--sysconfdir=/etc \
    	--mandir=/usr/share/man \
    	--localstatedir=/var \
    	--with-xorg-module-dir=/usr/lib/X11/modules \
    	$CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$PWD/_pkg install
}

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