# Contributor: Leo # Maintainer: pkgname=intel-media-driver pkgver=23.3.0 pkgrel=1 pkgdesc="Intel Media Driver for VAAPI" options="!check" # tests can't run in check(), only on install url="https://github.com/intel/media-driver" arch="x86_64" license="BSD-3-Clause AND MIT" makedepends=" cmake intel-gmmlib-dev libpciaccess-dev libva-dev samurai " subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/intel/media-driver/archive/intel-media-$pkgver.tar.gz" builddir="$srcdir/media-driver-intel-media-$pkgver" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja -Wno-dev \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DINSTALL_DRIVER_SYSCONF=OFF \ -DMEDIA_BUILD_FATAL_WARNINGS=OFF \ $CMAKE_CROSSOPTS cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 9eddb4294c8718a133144736c536b30e3a7a1cb0e96467ffc9565cc14f94659c59559b3bf59540b9e605325ee186afe9e359fbe2e64ab167dcbbd965ace68e9e intel-media-driver-23.3.0.tar.gz "