# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libvdpau
version=1.1.1
build=1sml
homepage="https://www.freedesktop.org/wiki/Software/VDPAU/"
download="https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/libvdpau-$version/libvdpau-libvdpau-$version.tar.bz2"
desc="Nvidia VDPAU library"
requires="libxext"

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="
4179278fb6dd87b9511c274bc8f797a33dfb055427317c9cb34a6ae2ce9d98724cbed6e12fc731e3b21b73230426bd7830ddfc94f775e77efadea9c1e7e488eb  libvdpau-1.1.1.tar.lz
"
