1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
5 pkgname=libva-intel-driver
8 pkgdesc='VA-API implementation for Intel G45 and HD Graphics family'
10 url=https://01.org/linuxmedia/vaapi
20 replaces=(libva-driver-intel)
21 source=(git+https://github.com/intel/intel-vaapi-driver.git#tag=9a1f0c64174f970a26380d4957583c71372fbb7c)
33 # Only relevant if intel-gpu-tools is installed,
34 # since then the shaders will be recompiled
35 sed -i '1s/python$/&2/' src/shaders/gpp.py
39 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
40 arch-meson intel-vaapi-driver build
45 DESTDIR="${pkgdir}" meson install -C build
46 install -Dm 644 intel-vaapi-driver/COPYING -t "${pkgdir}"/usr/share/licenses/libva-intel-driver