blob: 92a0d13e2f28fde176b5f44323266a9709c122eb (
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
|
# Maintainer: katt <magunasu.b97@gmail.com>
# Contributor: Martins Mozeiko <martins.mozeiko@gmail.com>
pkgname=libva-headless
pkgver=2.22.0
pkgrel=1
pkgdesc='Video Acceleration (VA) API for Linux headless systems'
arch=(i686 x86_64 armv7h aarch64)
url=https://01.org/linuxmedia/vaapi
license=(MIT)
depends=(libdrm)
makedepends=(meson git)
conflicts=("${pkgname%-headless}")
provides=("${pkgname%-headless}" libva.so libva-drm.so)
optdepends=(
'intel-media-driver: backend for Intel GPUs (>= Broadwell)'
'libva-intel-driver: backend for Intel GPUs (<= Haswell)'
'libva-mesa-driver: backend for AMD and Nvidia GPUs'
)
backup=(etc/libva.conf)
source=(git+https://github.com/intel/libva.git#tag="$pkgver")
sha256sums=('3f67943218b0402418cf8beec07eb5ddc72f38385d69f090c41ffb663fb85468')
build() {
CFLAGS+=" -DENABLE_VA_MESSAGING" # Option missing
arch-meson libva build -Dwith_x11=no -Dwith_glx=no -Dwith_wayland=no
meson compile -C build
}
package() {
meson install -C build --destdir "${pkgdir}"
install -Dm 644 libva/COPYING -t "${pkgdir}"/usr/share/licenses/"${pkgname}"
install -Dm 644 /dev/stdin "${pkgdir}"/etc/libva.conf <<END
LIBVA_MESSAGING_LEVEL=1
END
}
|