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"

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

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

  ./configure \
    --prefix="" \
    --disable-static 

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
43acca92943dcbfe8241e7946b3ce10231448b6d1e7c1b47d170bd175e12c542cf25c05a38a8b0194c099df5b49cbeda4d689711a6524c526148d2ae1b455512  libvdpau-1.1.1.tar.xz
"
