# SliTaz package receipt.

PACKAGE="libinput"
VERSION="1.16.4"
CATEGORY="x-window"
SHORT_DESC="Library that handles input devices for display servers"
MAINTAINER="al.bobylev@gmail.com"
LICENSE="MIT"
WEB_SITE="https://www.freedesktop.org/wiki/Software/libinput/"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WGET_URL="http://www.freedesktop.org/software/libinput/$TARBALL"

BUILD_DEPENDS="python3-setuptools meson ninja eudev-dev mtdev-dev \
libevdev-dev"
DEPENDS="eudev mtdev libevdev"

# Rules to configure and make the package.
compile_rules()
{
    mkdir build && cd build
    meson --prefix=/usr \
        -Dudev-dir=/lib/udev \
        -Ddebug-gui=false \
        -Dtests=false \
        -Ddocumentation=false \
        -Dlibwacom=false \
    .. &&
    ninja && ninja install || return 1
}

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