archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xf86-video-voodoo / repos / extra-x86_64 / PKGBUILD
blobb99d1175d6fcba88138d03d63421bc7b445ba379
1 # Maintainer: Andreas Radke <andyrtr@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
4 pkgname=xf86-video-voodoo
5 pkgver=1.2.6
6 pkgrel=1
7 pkgdesc="X.org 3dfx Voodoo1/Voodoo2 2D video driver"
8 arch=(x86_64)
9 url="https://xorg.freedesktop.org/"
10 license=('custom')
11 depends=('glibc')
12 makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'xorgproto')
13 conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26')
14 groups=('xorg-drivers')
15 options=('debug')
16 source=(${url}/releases/individual/driver/${pkgname}-${pkgver}.tar.xz{,.sig})
17 sha512sums=('c889d79044438d6b15efceda07f63874063a2faa24a86d048e62c8ad1364efdfec04ff7ec662ad0749d2a7263abb14edb74e7d5ebf9a1aa880edb2b341a80a31'
18             'SKIP')
19 validpgpkeys=('4A193C06D35E7C670FA4EF0BA2FB9E081F2D130E') # "Alan Coopersmith <alan.coopersmith@oracle.com>"
21 build() {
22   cd ${pkgname}-${pkgver}
24   # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
25   # With them, module fail to load with undefined symbol.
26   # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
27   export CFLAGS=${CFLAGS/-fno-plt}
28   export CXXFLAGS=${CXXFLAGS/-fno-plt}
29   export LDFLAGS=${LDFLAGS/,-z,now}
31   ./configure --prefix=/usr
32   make
35 package() {
36   cd ${pkgname}-${pkgver}
37   make DESTDIR="${pkgdir}" install
38   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
39   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"