archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xf86-video-voodoo / repos / extra-x86_64 / PKGBUILD
blobc00215f03954cfa4aa167912c29b853c4f2d06b1
1 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=xf86-video-voodoo
4 pkgver=1.2.5
5 pkgrel=12
6 pkgdesc="X.org 3dfx Voodoo1/Voodoo2 2D video driver"
7 arch=(x86_64)
8 url="https://xorg.freedesktop.org/"
9 license=('custom')
10 depends=('glibc')
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')
18 prepare() {
19   cd ${pkgname}-${pkgver}
20   patch -Np1 -i ../git-fixes.diff
23 build() {
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
34   make
37 package() {
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"