# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libevdev
version=1.9.1
build=1sml
homepage="https://www.freedesktop.org/wiki/Software/libevdev/"
download="https://freedesktop.org/software/libevdev/libevdev-$version.tar.xz"
desc="Wrapper library for evdev devices"
requires="python3"

prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions
}

build() {
  mkdir -p smbuild && cd smbuild
  meson .. \
    --prefix=/ \
    -Dtests=disabled \
    -Ddocumentation=disabled 

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
fe13a35b11647c53c4eb9e235f931934d06df84f6ca807e12a065ef1bc018dd31526e56f406488e27ff80dac949a780cf1db1255b3b48ce83ee29ec8589ec8d8  libevdev-1.9.1.tar.lz
"
