# Maintainer: Peter Mattern # Contributor: Ansgar Taflinski # Contributor: Jordy van Wolferen _pkgname=xf86-video-qxl pkgname=$_pkgname-git pkgver=0.1.5.19.g4e1963a pkgrel=1 pkgdesc='X Window System QXL driver including Xspice server' arch=('i686' 'x86_64') url='https://www.spice-space.org' license=('MIT') depends=('spice') optdepends=('python: Xspice server') makedepends=('git' 'xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=25.2' 'spice-protocol' 'libcacard') provides=('xf86-video-qxl') conflicts=('xf86-video-qxl' 'X-ABI-VIDEODRV_VERSION<25' 'X-ABI-VIDEODRV_VERSION>=26') source=("git+https://gitlab.freedesktop.org/xorg/driver/$_pkgname.git") sha256sums=('SKIP') pkgver() { cd $_pkgname git describe --always | sed 's/xf86-video-qxl.//;s/-/./g' } build() { cd $_pkgname # Since pacman 5.0.2-2, hardened flags are now enabled in makepkg.conf # With them, module fail to load with undefined symbol. # See https://bugs.archlinux.org/task/55102 / https://bugs.archlinux.org/task/54845 export CFLAGS=${CFLAGS/-fno-plt} export CXXFLAGS=${CXXFLAGS/-fno-plt} export LDFLAGS=${LDFLAGS/,-z,now} ./autogen.sh --prefix=/usr --enable-xspice=yes make } package() { cd $_pkgname make DESTDIR=$pkgdir install install -D -m644 $srcdir/$_pkgname/COPYING \ $pkgdir/usr/share/licenses/$pkgname/LICENSE }