diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-03 11:16:13 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-05-03 11:16:13 -0500 |
commit | e1d2454d98a7bdd60e4911f50f1c7a99527ac9ee (patch) | |
tree | 138a673e87cd8bb9eb7fc210d4c4d23a2338998f | |
parent | 4acc26adf1aabb4161d8f5862d32f8e4041959ff (diff) |
xf86-video-qxl-0.1.4-1: add new package to [pcr]
-rw-r--r-- | pcr/xf86-video-qxl/PKGBUILD | 39 | ||||
-rw-r--r-- | pcr/xf86-video-qxl/fix-cast.patch | 25 |
2 files changed, 64 insertions, 0 deletions
diff --git a/pcr/xf86-video-qxl/PKGBUILD b/pcr/xf86-video-qxl/PKGBUILD new file mode 100644 index 000000000..2ad0842ca --- /dev/null +++ b/pcr/xf86-video-qxl/PKGBUILD @@ -0,0 +1,39 @@ +# Contributor (Arch): Christian Hesse <mail@eworm.de> +# Contributor (Arch): Yonathan Dossow +# Contributor (Arch): Ansgar Taflinski <ataflinski@uni-koblenz.de> +# Maintainer : Omar Vega Ramos <ovruni@gnu.org.pe> + +pkgname=xf86-video-qxl +pkgver=0.1.4 +pkgrel=1 +pkgdesc='Xorg X11 qxl video driver' +arch=('x86_64' 'i686') +url='http://www.x.org' +license=('MIT') +groups=('xorg-drivers') +depends=('xf86dgaproto' 'xproto' 'fontsproto' 'randrproto' 'renderproto' 'videoproto' 'resourceproto' 'scrnsaverproto' 'spice') +optdepends=('python2: for Xspice') +makedepends=('xorg-server-devel' 'X-ABI-VIDEODRV_VERSION=19' 'spice-protocol') +conflicts=('xf86-video-qxl-git' 'X-ABI-VIDEODRV_VERSION<19' 'X-ABI-VIDEODRV_VERSION>=20') +source=("http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2" + 'fix-cast.patch') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}/" + + patch -Np1 < "${srcdir}/fix-cast.patch" + sed -i '1c #!/usr/bin/python2' scripts/Xspice + + ./configure --enable-xspice \ + --prefix=/usr + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}/" + + make DESTDIR="${pkgdir}/" install +} + +sha256sums=('e57ad22f0b1daf8979e722be0cc38d351bfcc2e41568edc566d2bade5a621105' + '575243334f763c21282eccd7bd4eb713b90e96fdd46a882370925fa20d4acb70') diff --git a/pcr/xf86-video-qxl/fix-cast.patch b/pcr/xf86-video-qxl/fix-cast.patch new file mode 100644 index 000000000..e51beec29 --- /dev/null +++ b/pcr/xf86-video-qxl/fix-cast.patch @@ -0,0 +1,25 @@ +From d17fd8b7b503fd5d247fe75432ad192414fa2bdd Mon Sep 17 00:00:00 2001 +From: Christian Hesse <mail@eworm.de> +Date: Tue, 7 Jan 2014 08:16:48 +0100 +Subject: [PATCH 1/1] fix cast + +--- + src/spiceqxl_display.c | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/spiceqxl_display.c b/src/spiceqxl_display.c +index a3a8978..7646efc 100644 +--- a/src/spiceqxl_display.c ++++ b/src/spiceqxl_display.c +@@ -350,6 +350,6 @@ void qxl_add_spice_display_interface(qxl_screen_t *qxl) + + void spiceqxl_display_monitors_config(qxl_screen_t *qxl) + { +- spice_qxl_monitors_config_async(&qxl->display_sin, (QXLPHYSICAL)qxl->monitors_config, +- MEMSLOT_GROUP, 0); ++ spice_qxl_monitors_config_async(&qxl->display_sin, ++ (QXLPHYSICAL)(uintptr_t)qxl->monitors_config, MEMSLOT_GROUP, 0); + } +-- +1.8.5.2 + |