# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libwacom
version=0.29
build=1sml
homepage="https://github.com/linuxwacom/libwacom"
download="https://github.com/linuxwacom/libwacom/archive/refs/tags/libwacom-$version.tar.gz"
desc="Library to identify Wacom tablets and their features"
requires="glib libxml2"

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

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

build() {
  ./configure \
    --prefix="" \
    --disable-static 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
0ca1597be0919204fc71367f3af1153482b72e9457dc6f0b4c59dde52836dc12d78801b6bf61c4c460623de819ec501816eb49f379be8bca89a5d092c81b70a7  libwacom-0.29.tar.lz
"
