APP=libinput
VERSION=1.10.0
BUILD=1sml
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libinput/"
DOWNLOAD="https://freedesktop.org/software/libinput/libinput-1.10.0.tar.xz"
DESC="Input device management and event handling library"
REQUIRES="libevdev mtdev libwacom"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Ddocumentation=false \
    -Dtests=false \
    -Ddebug-gui=false

  ninja
  DESTDIR="$PKG" ninja install
  cp ../COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
173f72f454c534dee755b6121c4577900ae9b8a129ac41de69410c3195950a6d149d6148892c4976f013eeabca66117d53fa67e352cc005960863a5576696928  libinput-1.10.0.tar.xz
"
