blob: f699b3bb5261bb17912a5bffee56cd0375bf0ed3 (
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
|
# Maintainer: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
pkgname=libva-intel-driver
pkgver=2.3.0
pkgrel=2
pkgdesc='VA-API implementation for Intel G45 and HD Graphics family'
arch=('x86_64')
url='https://01.org/linuxmedia/vaapi'
license=('MIT')
depends=('libva' 'libdrm')
makedepends=('git' 'meson')
replaces=('libva-driver-intel')
source=("git+https://github.com/intel/intel-vaapi-driver.git#tag=${pkgver}"
427.patch)
sha256sums=('SKIP'
'e51eaf65b1bb09bf62a1b78668da0c268722387cb8eb3c05ec2d7462c651d1c0')
prepare() {
cd intel-vaapi-driver
# https://github.com/intel/intel-vaapi-driver/issues/419
patch -Np1 -i ../427.patch
# Only relevant if intel-gpu-tools is installed,
# since then the shaders will be recompiled
sed -i '1s/python$/&2/' src/shaders/gpp.py
# Fix undefined variable in src/meson.build
sed -i 's/2.2.0/2.2.0.0/' meson.build
}
build() {
arch-meson intel-vaapi-driver build
ninja -C build
}
package() {
DESTDIR="${pkgdir}" meson install -C build
install -Dm 644 intel-vaapi-driver/COPYING -t "${pkgdir}"/usr/share/licenses/libva-intel-driver
}
# vim: ts=2 sw=2 et:
|