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=0c752742e54fa34140386547947c81a832c9cad1 # master 2022-09-21 // v0.6.602
7 pkgver=0.6.0.r798.g0c75274
10 pkgdesc="X.Org Openchrome drivers"
13 url="https://www.freedesktop.org/wiki/Openchrome/"
14 depends=('libdrm' 'libxvmc' 'systemd-libs')
15 makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'systemd' 'libxv'
17 conflicts=('xorg-server<21.1.1' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26'
18 'xf86-video-via' 'xf86-video-unichrome' 'openchrome')
19 replaces=('openchrome' 'xf86-video-via')
20 groups=('xorg-drivers')
21 options=('!emptydirs')
22 #source=(https://xorg.freedesktop.org/archive/individual/driver/${pkgname}-${pkgver}.tar.bz2{,.sig})
23 #sha256sums=('da2975c6379358de52c1257710c67eb59139a7f0a1cd28d00cc64cc3e1c02f75'
25 source=("git+https://anongit.freedesktop.org/git/openchrome/xf86-video-openchrome#commit=${_commit}")
27 validpgpkeys=('CDA92E38A7A7A82237E9AB61C922784178BFFDB0') # "Kevin Brace <kevinbrace@gmx.com>"
31 #git describe --long | sed 's/-/+/g'
32 # git describe --long | sed "s/openchrome-//;s/-/./g"
33 git describe --long | sed 's/^xf86-video-openchrome-//;s/\([^-]*-g\)/r\1/;s/-/./g'
34 # git describe --long | sed "s/openchrome-//;s/0.5/0.5.200/;s/-/+/g"
35 # git describe --long | sed "s/openchrome-//;s/0.5/0.5.0/;s/-/+/g"
40 NOCONFIGURE=1 ./autogen.sh
44 cd ${pkgname} #-${pkgver}
46 # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf
47 # With them, module fail to load with undefined symbol.
48 # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845
49 export CFLAGS=${CFLAGS/-fno-plt}
50 export CXXFLAGS=${CXXFLAGS/-fno-plt}
51 export LDFLAGS=${LDFLAGS/,-z,now}
53 ./configure --prefix=/usr
58 cd ${pkgname} #-${pkgver}
64 cd ${pkgname} #-${pkgver}
65 make DESTDIR="${pkgdir}" install
66 install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
67 install -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/"