app=libinput
version=1.19.3
build=1sml
homepage="https://www.freedesktop.org/wiki/Software/libinput/"
download="https://freedesktop.org/software/libinput/libinput-$version.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="
f4b776d0da78c687ba21b430a04941ac6b43f68970c82ec9f7360358fdea5ed6a873948ce66a25bcdd64d4b95fa4bf705cc24dbc25c7c0f5fd2d0efbd763f298  libinput-1.19.3.tar.xz
"
