1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=xf86-video-voodoo
6 pkgdesc="X.org 3dfx Voodoo1/Voodoo2 2D video driver"
8 url="https://xorg.freedesktop.org/"
11 makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'xorgproto')
12 conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
13 groups=('xorg-drivers')
14 source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2 git-fixes.diff)
15 sha256sums=('9e3eb8a3fdcc60ce4f7c37649188cfa67dcf25cda3a85d8027588458bb3fd7e8'
16 'ab21fc45573bb309f3ad413a3242a48e0850b0fe36f30cad8443a2555cafcd66')
19 cd ${pkgname}-${pkgver}
20 patch -Np1 -i ../git-fixes.diff
24 cd ${pkgname}-${pkgver}
26 # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
27 # With them, module fail to load with undefined symbol.
28 # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
29 export CFLAGS=${CFLAGS/-fno-plt}
30 export CXXFLAGS=${CXXFLAGS/-fno-plt}
31 export LDFLAGS=${LDFLAGS/,-z,now}
33 ./configure --prefix=/usr
38 cd ${pkgname}-${pkgver}
39 make DESTDIR="${pkgdir}" install
40 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
41 install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"