1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
2 # Contributor: Paul Mattal <paul@mattal.com>
3 # Contributor: Juergen Hoetzel <juergen@hoetzel.info>
5 pkgname=xf86-video-openchrome
6 _commit=15c868a # 7 digits # = 0.6.0 RC1
7 pkgver=0.6.0.r754.g15c868a
10 pkgdesc="X.Org Openchrome drivers"
13 url="https://www.freedesktop.org/wiki/Openchrome/"
14 depends=('libdrm' 'libxvmc' 'systemd-libs')
15 optdepends=('unichrome-dri')
16 makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'systemd' 'libxv'
18 conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26'
19 'xf86-video-via' 'xf86-video-unichrome' 'openchrome')
20 replaces=('openchrome' 'xf86-video-via')
21 groups=('xorg-drivers')
22 options=('!emptydirs')
23 #source=(https://xorg.freedesktop.org/archive/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig})
24 #sha256sums=('da2975c6379358de52c1257710c67eb59139a7f0a1cd28d00cc64cc3e1c02f75'
26 source=("git://anongit.freedesktop.org/openchrome/xf86-video-openchrome#commit=${_commit}")
28 validpgpkeys=('CDA92E38A7A7A82237E9AB61C922784178BFFDB0') # "Kevin Brace <kevinbrace@gmx.com>"
32 #git describe --long | sed 's/-/+/g'
33 # git describe --long | sed "s/openchrome-//;s/-/./g"
34 git describe --long | sed 's/^xf86-video-openchrome-//;s/\([^-]*-g\)/r\1/;s/-/./g'
35 # git describe --long | sed "s/openchrome-//;s/0.5/0.5.200/;s/-/+/g"
36 # git describe --long | sed "s/openchrome-//;s/0.5/0.5.0/;s/-/+/g"
41 NOCONFIGURE=1 ./autogen.sh
45 cd ${pkgname} #-${pkgver}
47 # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
48 # With them, module fail to load with undefined symbol.
49 # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
50 export CFLAGS=${CFLAGS/-fno-plt}
51 export CXXFLAGS=${CXXFLAGS/-fno-plt}
52 export LDFLAGS=${LDFLAGS/,-z,now}
54 ./configure --prefix=/usr
59 cd ${pkgname} #-${pkgver}
65 cd ${pkgname} #-${pkgver}
66 make DESTDIR="${pkgdir}" install
67 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
68 install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"