# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libva pkgver=2.5.0 pkgrel=0 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" builddir="$srcdir"/$pkgname-$pkgver 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 ) cd "$builddir" default_prepare } build() { cd "$builddir" meson builddir \ --prefix=/usr \ -Dwith_glx=no \ -Dwith_wayland=yes ninja -C builddir } package() { cd "$builddir" DESTDIR="$pkgdir" ninja -C builddir install } sha512sums="ce810faa216fc9b3f466565b598018b20b8590692ec6b88874d2920bce8c5e875e429957e370ebba95aa2375f80c1c0f0d68cb6eb2276494c74b9da2a5547f96 libva-2.5.0.tar.gz"