# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libva pkgver=2.6.0 pkgrel=1 pkgdesc="Video Acceleration (VA) API for Linux" url="https://01.org/linuxmedia" arch="all" options="!check" # No test suite. license="MIT" depends_dev="libx11-dev libxext-dev libxfixes-dev libdrm-dev" makedepends="$depends_dev meson wayland-dev" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/intel/libva/archive/$pkgver.tar.gz" prepare() { ( if [ -f "$startdir"/../libva-glx/APKBUILD ]; then _v=$pkgver . "$startdir"/../libva-glx/APKBUILD if [ "$_v" != "$pkgver" ]; then die "libva and libva-glx needs to be same version" fi fi ) default_prepare } build() { meson builddir \ --prefix=/usr \ -Dwith_glx=no \ -Dwith_wayland=yes ninja -C builddir } package() { DESTDIR="$pkgdir" ninja -C builddir install } sha512sums="190fd9875d8ec91e94d42c41b770bb51ef9f430534f99d22fa394d6e4cf8dd308ffac61a37171855e4b499982c3cc59925d238b131dd2261a3beaae03e4937d0 libva-2.6.0.tar.gz"