summaryrefslogtreecommitdiff
path: root/libre/pyqt5
diff options
context:
space:
mode:
authorIsaac David <isacdaavid@isacdaavid.info>2017-03-13 01:51:01 -0600
committerIsaac David <isacdaavid@isacdaavid.info>2017-03-13 01:51:01 -0600
commitc7b60b407c0f6a94818b269d569bcae2bcf35d49 (patch)
tree8dca0235c1578667e83bc4c1520f1663934fe27c /libre/pyqt5
parente35d80b6dd1427f929bb61de5ccb8b9f8583da85 (diff)
pyqt5: add OpenGLES patch for building on ARM
Diffstat (limited to 'libre/pyqt5')
-rw-r--r--libre/pyqt5/PKGBUILD12
-rw-r--r--libre/pyqt5/opengles-hack.patch11
2 files changed, 20 insertions, 3 deletions
diff --git a/libre/pyqt5/PKGBUILD b/libre/pyqt5/PKGBUILD
index 0ec80b90b..9f1cd1186 100644
--- a/libre/pyqt5/PKGBUILD
+++ b/libre/pyqt5/PKGBUILD
@@ -5,24 +5,30 @@
# Contributor (Arch): Douglas Soares de Andrade <douglas@archlinux.org>
# Contributor (Arch): riai <riai@bigfoot.com> Ben <ben@benmazer.net>
# Maintainer: André Silva <emulatorman@parabola.nu>
+# Contributor: Isaac David <isacdaavid@at@isacdaavid@dot@info>
pkgbase=pyqt5
pkgname=('pyqt5-common' 'python-pyqt5' 'python2-pyqt5')
pkgver=5.8
_pkgver=$pkgver
pkgrel=1.parabola1
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armv7h')
url="http://riverbankcomputing.co.uk/software/pyqt/intro"
license=('GPL')
makedepends=('python-sip' 'python2-sip' 'python-opengl' 'python2-opengl'
'python2-dbus' 'python-dbus' 'qt5-connectivity'
'qt5-multimedia' 'qt5-tools' 'qt5-serialport' 'qt5-svg'
'qt5-webkit' 'qt5-websockets' 'qt5-x11extras')
-source=("http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$pkgver/PyQt5_gpl-$pkgver.tar.gz")
-md5sums=('ac04c0bfc1f05f5a1c2a1edd2640235c')
+source=("http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$pkgver/PyQt5_gpl-$pkgver.tar.gz"
+ 'opengles-hack.patch')
+md5sums=('ac04c0bfc1f05f5a1c2a1edd2640235c'
+ 'ad09b1c84c26d5e92de192477cb3a2d1')
prepare() {
pushd PyQt5_gpl-${_pkgver}
+ if [[ "$CARCH" =~ ^arm*|^aarch64$ ]]; then
+ patch -p1 -i ../opengles-hack.patch
+ fi
# Support Qt 5.8
# patch -p1 -i ../pyqt-qt5.8.patch
popd
diff --git a/libre/pyqt5/opengles-hack.patch b/libre/pyqt5/opengles-hack.patch
new file mode 100644
index 000000000..afadeb49b
--- /dev/null
+++ b/libre/pyqt5/opengles-hack.patch
@@ -0,0 +1,11 @@
+diff -urN a/configure.py b/configure.py
+--- a/configure.py 2017-01-28 20:39:01.562407718 -0700
++++ b/configure.py 2017-01-28 22:08:41.670433124 -0700
+@@ -688,6 +688,7 @@
+ #elif defined(QT_OPENGL_ES_2)
+ out << "PyQt_Desktop_OpenGL\\n";
+ #endif
++ out << "PyQt_Desktop_OpenGL\\n";
+
+ #if QT_VERSION < 0x050200
+ // This is the test used in qglobal.h in Qt prior to v5.2. In v5.2 and later