1 # Maintainer: Maxime Gauduin <alucryd@archlinux.org>
2 # Contributor: Ionut Biru <ibiru@archlinux.org>
3 # Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
5 pkgname=libva1-intel-driver
8 pkgdesc='VA-API implementation for Intel G45 and HD Graphics family'
10 url='https://01.org/linuxmedia/vaapi'
12 depends=('libva1' 'libdrm')
14 source=("git+https://github.com/intel/intel-vaapi-driver.git#tag=${pkgver}")
20 # Only relevant if intel-gpu-tools is installed,
21 # since then the shaders will be recompiled
22 sed -i '1s/python$/&2/' src/shaders/gpp.py
24 NOCONFIGURE=1 ./autogen.sh
30 CFLAGS+=' -fcommon' # https://wiki.gentoo.org/wiki/Gcc_10_porting_notes/fno_common
32 export PKG_CONFIG_PATH='/usr/lib/libva1/pkgconfig'
36 --libdir='/usr/lib/libva1'
41 make DESTDIR="${pkgdir}" -C intel-vaapi-driver install
42 install -Dm 644 intel-vaapi-driver/COPYING -t "${pkgdir}"/usr/share/licenses/libva1-intel-driver