archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xf86-video-fbdev / trunk / PKGBUILD
blobe043b5cbe87c87c108b9f491799b2166ce7bfd99
1 #Maintainer: Jan de Groot <jgc@archlinux.org>
3 pkgname=xf86-video-fbdev
4 pkgver=0.5.0
5 pkgrel=3
6 pkgdesc="X.org framebuffer video driver"
7 arch=(x86_64)
8 license=('custom')
9 url="https://xorg.freedesktop.org/"
10 depends=('glibc')
11 makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2') # git)
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{,.sig}
15         gcc8.diff)
16 sha256sums=('dcc3d85f378022180e437a9ec00a59b6cb7680ff79c40394d695060af2374699'
17             'SKIP'
18             '050db537aae39b6deb1b2531b0064d62e2725f92b6c5c8ee6ade32e73cd3d5e8')
19 validpgpkeys=('995ED5C8A6138EB0961F18474C09DD83CAAA50B2')
21 prepare() {
22   cd $pkgname-$pkgver
23   patch -Np0 -i ../gcc8.diff
26 build() {
27   cd $pkgname-$pkgver
29   # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
30   # With them, module fail to load with undefined symbol.
31   # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
32   export CFLAGS=${CFLAGS/-fno-plt}
33   export CXXFLAGS=${CXXFLAGS/-fno-plt}
34   export LDFLAGS=${LDFLAGS/,-z,now}
36   ./configure --prefix=/usr
37   make
40 check() {
41   cd $pkgname-$pkgver
42   make check
45 package() {
46   cd $pkgname-$pkgver
47   make DESTDIR="${pkgdir}" install
48   install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
49   install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"