archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xf86-video-intel / repos / extra-x86_64 / PKGBUILD
blob0790e931d1fd85bdf4bd4db68f09214085e9a865
1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
2 # Maintainer: 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=31486f40f8e8f8923ca0799aea84b58799754564 # master 2021-01-15
8 pkgver=2.99.917+916+g31486f40
9 pkgrel=2
10 epoch=1
11 arch=(x86_64)
12 url="https://01.org/linuxgraphics"
13 license=('custom')
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")
33 sha256sums=('SKIP')
34 #options=('!makeflags')
36 pkgver() {
37   cd $pkgname
38   git describe --tags | sed 's/-/+/g'
41 prepare() {
42   cd $pkgname
43   NOCONFIGURE=1 ./autogen.sh
45 #  mkdir build
48 build() {
49   cd $pkgname
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 \
60     --with-default-dri=3
61   make
62 #  cd build
63 #  arch-meson $pkgname build \
64 #   -Dwith-default-dri=3
65 #  ninja -C build
68 check() {
69   cd $pkgname
70   make check
71 #  meson test -C build
74 package() {
75   cd $pkgname
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}/"