Name libvdpau-va-gl
Description VDPAU driver with OpenGL/VAAPI backend
Version 0.4.2-4
Package Base libvdpau-va-gl
Homepage https://github.com/i-rinat/libvdpau-va-gl
Maintainers ['Maxime Gauduin <alucryd@archlinux.org>', 'T.J. Townsend <blakkheim@archlinux.org>']
Contributors ['Bartłomiej Piotrowski <bpiotrowski@archlinux.org>', 'Behem0th <grantipak@gmail.com>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/libvdpau-va-gl
Sources ['libvdpau-va-gl-0.4.2.tar.gz::https://github.com/i-rinat/libvdpau-va-gl/archive/v0.4.2.tar.gz']
Dependencies ['gcc-libs', 'glibc', 'libgl', 'libva-x11.so', 'libva.so', 'libvdpau', 'libx11']
Optional-Dependencies []
Build-Dependencies ['cmake']
Provides []
Builddate 12-07-2024 23:27:01
Architecture x86_64
Distro-Version
Licenses ['LGPL3']
Hash 581d1846edc3298dcef26ae91ef793d881f85a44b38750d069e5e12282b573b4
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Behem0th <grantipak@gmail.com>

pkgname=libvdpau-va-gl
pkgver=0.4.2
pkgrel=4
pkgdesc='VDPAU driver with OpenGL/VAAPI backend'
arch=('x86_64')
url='https://github.com/i-rinat/libvdpau-va-gl'
license=('LGPL3')
depends=('gcc-libs' 'glibc' 'libgl' 'libvdpau' 'libx11'
         'libva.so' 'libva-x11.so')
makedepends=('cmake')
source=("libvdpau-va-gl-${pkgver}.tar.gz::https://github.com/i-rinat/libvdpau-va-gl/archive/v${pkgver}.tar.gz")
sha256sums=('7d9121540658eb0244859e63da171ca3869e784afbeaf202f44471275c784af4')

prepare() {
  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build
}

build() {
  cd build

  cmake ../libvdpau-va-gl-${pkgver} \
    -DCMAKE_BUILD_TYPE='Release' \
    -DCMAKE_INSTALL_PREFIX='/usr'
  make
}

package() {
  cd build

  make DESTDIR="${pkgdir}" install
}

# vim: ts=2 sw=2 et: