# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libmanette
version=0.2.6
build=1sml
homepage="https://gnome.pages.gitlab.gnome.org/libmanette/"
download="https://download-fallback.gnome.org/sources/libmanette/0.2/libmanette-$version.tar.xz"
desc="GObject game controller library for GNOME"
requires="musl gobject-introspection libgudev"

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="/" \
    -Ddoc=false \
    -Dintrospection=false

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs

  mkfinalpkg
}

sha512sums="
f450119d8ecdd27399c64bad3157d95d13ba23b87227114bf6a03dacf66d5c760064fbe127c39e1a2d85b246860419d00ccd232a94634fa3014561a73a86e2ab  libmanette-0.2.6.tar.lz
"
