APP=libevdev
VERSION=1.9.1
BUILD=1sml
HOMEPAGE="https://www.freedesktop.org/wiki/Software/libevdev/"
DOWNLOAD="https://freedesktop.org/software/libevdev/libevdev-1.9.1.tar.xz"
DESC="Wrapper library for evdev devices"
REQUIRES="python3"

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

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

  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Dtests=disabled \
    -Ddocumentation=disabled 

  ninja
  DESTDIR="$PKG" ninja install

  cp ../COPYING $PKGDOCS/

  mkfinalpkg
}

SHA512SUMS="
7d845ce2279d2e2ef12437f6218550265ea0c85e5b6c0d116aff09787b73626b338fe3084baff060085d393688b5ae3d33772689e0581684eff257af01c4c645  libevdev-1.9.1.tar.xz
"
