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-0.2.6.tar.xz"
desc="GObject game controller library for GNOME"
requires="musl gobject-introspection libgudev "

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

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

  mkdir smbuild && cd smbuild
  meson .. \
    --prefix="/" \
    -Ddoc=false \
    -Dintrospection=false

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs

  mkfinalpkg
}

sha512sums="
e10a1b3e493a6472b0cf7562e3dfbba839ee69bb878676b2e3521363e9ff7c5df7d379923a4781366797e889f3c8985397080ae606264dc9bd3a4459bce0513c  libmanette-0.2.6.tar.xz
"
