blob: ea696951318eca7a31ea62bb78181d034d38348b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Maintainer: Daniel Bermond <dbermond@archlinux.org>
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}"
}
|