archrelease: copy trunk to extra-x86_64
[arch-packages.git] / xf86-video-openchrome / trunk / PKGBUILD
blob64cd42e9890d9b480781a8f8350253fe5cb5c939
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
8 #pkgver=0.6.0
9 pkgrel=2
10 pkgdesc="X.Org Openchrome drivers"
11 arch=(x86_64)
12 license=('custom')
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'
16              'git')
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'
24 #            'SKIP')
25 source=("git+https://anongit.freedesktop.org/git/openchrome/xf86-video-openchrome#commit=${_commit}")
26 sha256sums=('SKIP')
27 validpgpkeys=('CDA92E38A7A7A82237E9AB61C922784178BFFDB0') # "Kevin Brace <kevinbrace@gmx.com>"
29 pkgver() {
30   cd $pkgname
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"
38 prepare() {
39   cd $pkgname
40   NOCONFIGURE=1 ./autogen.sh
43 build() {
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
54   make
57 check() {
58   cd ${pkgname} #-${pkgver}
59   make check
63 package() {
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}/"