# SliTaz package receipt.

PACKAGE="xorg-xf86-input-libinput"
VERSION="0.30.0"
SOURCE="xf86-input-libinput"
CATEGORY="x-window"
SHORT_DESC="libinput-based X.Org input driver"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="MIT"
WEB_SITE="https://www.x.org/wiki/"
TARBALL="$SOURCE-$VERSION.tar.bz2"
WGET_URL="$XORG_MIRROR/driver/$TARBALL"

BUILD_DEPENDS="xorg-util-macros xorg-server-dev \
libinput-dev mtdev-dev libevdev-dev eudev-dev"
DEPENDS="xorg-server eudev libevdev libinput mtdev"

# Rules to configure and make the package.
compile_rules()
{
    cd $src
    ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --with-xorg-module-dir=/usr/lib/X11/modules \
        $CONFIGURE_ARGS &&
    make && make 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/
}