102.11.0-1
[arch-packages.git] / xf86-video-nouveau / trunk / PKGBUILD
blob3dcf9aa9980c696030290fb7c22a28c9f99a6fdf
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: buddabrod <buddabrod@gmail.com>
4 pkgname=xf86-video-nouveau
5 pkgver=1.0.17
6 pkgrel=2
7 pkgdesc="Open Source 3D acceleration driver for nVidia cards"
8 arch=('x86_64')
9 url="https://nouveau.freedesktop.org/"
10 license=('GPL')
11 depends=('systemd-libs' 'mesa')
12 makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'systemd')
13 conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
14 groups=('xorg-drivers')
15 source=(https://xorg.freedesktop.org/archive/individual/driver/$pkgname-$pkgver.tar.bz2{,.sig}
16         xorg-server-21.1.diff)
17 sha512sums=('adba58ba5298d1a5b3f9f8540f9ef2cb2e10e47bba8e374103ec2e1f92e915f5f4393ed0021168cd649646e12315135a1efcdf77e8fb1648e1295914d87279b2'
18             'SKIP'
19             '6c1bc0a2197a0fdaa3f669ce96ab2bc0167642168da01a86c712e1a77692244ad7b68a5c71d47b62abb6fa9b74f0495226133b7eff4badbd6dda56994bba74c8')
20 validpgpkeys=('B97BD6A80CAC4981091AE547FE558C72A67013C3') # Maarten Lankhorst <maarten@debian.org>
21 validpgpkeys+=('C9FA6B58BC799041500F769AC5469FB8758F9C2B') # "Lyude Paul <lyude@redhat.com>"
22 validpgpkeys+=('BFB9B0C276D5767C710086EFB178BE4EA075DE07') # "Ilia Mirkin <imirkin@alum.mit.edu>"
24 prepare() {
25   cd $pkgname-$pkgver
26   patch -np1 -i ../xorg-server-21.1.diff
29 build() {
30   cd $pkgname-$pkgver
32   # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
33   # With them, module fail to load with undefined symbol.
34   # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
35   export CFLAGS=${CFLAGS/-fno-plt}
36   export CXXFLAGS=${CXXFLAGS/-fno-plt}
37   export LDFLAGS=${LDFLAGS/,-z,now}
39   ./configure --prefix=/usr
40   make
43 package() {
44   cd $pkgname-$pkgver
45   make DESTDIR="$pkgdir" install