archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / onevpl-intel-gpu / trunk / PKGBUILD
blob860409fbf89434b00d2d039807d36800ef2d80c4
1 # Maintainer: Daniel Bermond <dbermond@archlinux.org>
3 pkgname=onevpl-intel-gpu
4 pkgver=23.1.5
5 pkgrel=1
6 pkgdesc='oneVPL runtime implementation for Intel GPUs (Tiger Lake and newer)'
7 arch=('x86_64')
8 url='https://www.intel.com/content/www/us/en/developer/tools/oneapi/onevpl.html'
9 license=('MIT')
10 depends=('intel-media-driver' 'libdrm' 'libva')
11 makedepends=('cmake')
12 provides=('onevpl-runtime')
13 source=("https://github.com/oneapi-src/oneVPL-intel-gpu/archive/intel-onevpl-${pkgver}/${pkgname}-${pkgver}.tar.gz"
14         '010-onevpl-intel-gpu-disable-verbose-makefile.patch')
15 sha256sums=('c2a246034b23c12551b528be98489ad534839c3485ef6a20a2678e2d03e0d0b1'
16             'c6b17b7026d16d02c3cab7b5081366c24021a86fa173eaee5db310691ce76879')
18 prepare() {
19     patch -d "oneVPL-intel-gpu-intel-onevpl-${pkgver}" -Np1 -i "${srcdir}/010-onevpl-intel-gpu-disable-verbose-makefile.patch"
22 build() {
23     export CFLAGS+=' -DNDEBUG'
24     export CXXFLAGS+=' -DNDEBUG'
25     cmake -B build -S "oneVPL-intel-gpu-intel-onevpl-${pkgver}" \
26         -G 'Unix Makefiles' \
27         -DCMAKE_BUILD_TYPE:STRING='None' \
28         -DCMAKE_INSTALL_PREFIX:PATH='/usr' \
29         -DBUILD_TESTS:BOOL='OFF' \
30         -DMFX_ENABLE_AENC:BOOL='ON' \
31         -Wno-dev
32     cmake --build build
35 package() {
36     DESTDIR="$pkgdir" cmake --install build
37     install -D -m644 "oneVPL-intel-gpu-intel-onevpl-${pkgver}"/{LICENSE,NOTICE} -t "${pkgdir}/usr/share/licenses/${pkgname}"