1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgname=xf86-video-intel
5 # https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/log/
6 # https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel/commits/master
7 _commit=b74b67f0f321875492968f7097b9d6e82a66d7df # master 2023-02-01
8 pkgver=2.99.917+923+gb74b67f0
12 url="https://01.org/linuxgraphics"
14 install=$pkgname.install
15 pkgdesc="X.org Intel i810/i830/i915/945G/G965+ video drivers"
16 depends=('mesa' 'libxvmc' 'pixman' 'xcb-util>=0.3.9' 'systemd-libs')
17 makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'libx11' 'libxrender' 'libxv'
18 # additional deps for intel-virtual-output
19 'libxrandr' 'libxinerama' 'libxcursor' 'libxtst' 'libxss'
20 # additional for git snapshot
21 'git') # 'meson' 'valgrind')
22 optdepends=('libxrandr: for intel-virtual-output'
23 'libxinerama: for intel-virtual-output'
24 'libxcursor: for intel-virtual-output'
25 'libxtst: for intel-virtual-output'
26 'libxss: for intel-virtual-output')
27 replaces=('xf86-video-intel-uxa' 'xf86-video-intel-sna')
28 provides=('xf86-video-intel-uxa' 'xf86-video-intel-sna')
29 conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26'
30 'xf86-video-intel-sna' 'xf86-video-intel-uxa' 'xf86-video-i810' 'xf86-video-intel-legacy')
31 groups=('xorg-drivers')
32 source=("git+https://anongit.freedesktop.org/git/xorg/driver/xf86-video-intel#commit=$_commit")
38 git describe --tags | sed 's/-/+/g'
43 NOCONFIGURE=1 ./autogen.sh
51 # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
52 # With them, module fail to load with undefined symbol.
53 # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
54 export CFLAGS=${CFLAGS/-fno-plt}
55 export CXXFLAGS=${CXXFLAGS/-fno-plt}
56 export LDFLAGS=${LDFLAGS/,-z,now}
58 ./configure --prefix=/usr \
59 --libexecdir=/usr/lib \
63 # arch-meson $pkgname build \
64 # -Dwith-default-dri=3
77 make DESTDIR="${pkgdir}" install
79 # DESTDIR="$pkgdir" ninja -C build install
81 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
82 install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"