# Maintainer: Daniel Bermond pkgname=onevpl-intel-gpu-git pkgver=23.3.0.r23.gc9b5b254 pkgrel=1 pkgdesc='oneVPL runtime implementation for Intel GPUs (Tiger Lake and newer) (git version)' arch=('x86_64') url='https://www.intel.com/content/www/us/en/developer/tools/oneapi/onevpl.html' license=('MIT') depends=('intel-media-driver' 'libdrm' 'libva') makedepends=('git' 'cmake') provides=('onevpl-intel-gpu') conflicts=('onevpl-intel-gpu') source=('git+https://github.com/oneapi-src/oneVPL-intel-gpu.git' '010-onevpl-intel-gpu-disable-verbose-makefile.patch') sha256sums=('SKIP' 'c6b17b7026d16d02c3cab7b5081366c24021a86fa173eaee5db310691ce76879') prepare() { patch -d oneVPL-intel-gpu -Np1 -i "${srcdir}/010-onevpl-intel-gpu-disable-verbose-makefile.patch" } pkgver() { local _version _version="$(git -C oneVPL-intel-gpu tag --list --sort='-v:refname' 'intel-onevpl-*' | sed -n 's/^intel-onevpl-//;1p')" printf '%s.r%s.g%s' "$_version" \ "$(git -C oneVPL-intel-gpu rev-list --count "intel-onevpl-${_version}..HEAD")" \ "$(git -C oneVPL-intel-gpu rev-parse --short HEAD)" } build() { export CFLAGS+=' -DNDEBUG' export CXXFLAGS+=' -DNDEBUG' cmake -B build -S oneVPL-intel-gpu \ -G 'Unix Makefiles' \ -DCMAKE_BUILD_TYPE:STRING='None' \ -DCMAKE_INSTALL_PREFIX:PATH='/usr' \ -DBUILD_TESTS:BOOL='OFF' \ -DMFX_ENABLE_AENC:BOOL='ON' \ -Wno-dev cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build install -D -m644 oneVPL-intel-gpu/{LICENSE,NOTICE} -t "${pkgdir}/usr/share/licenses/${pkgname}" }