extra/pyqt4 to 4.12-1

This commit is contained in:
Kevin Mihelich 2017-01-23 13:45:37 +00:00
parent ea3df6fc3b
commit 597f4c50d1

View file

@ -9,26 +9,26 @@
pkgbase=pyqt4 pkgbase=pyqt4
pkgname=('pyqt4-common' 'python-pyqt4' 'python2-pyqt4') pkgname=('pyqt4-common' 'python-pyqt4' 'python2-pyqt4')
pkgver=4.11.4 pkgver=4.12
pkgrel=5 pkgrel=1
arch=('i686' 'x86_64') arch=('i686' 'x86_64')
url="http://www.riverbankcomputing.co.uk/software/pyqt/intro" url="http://www.riverbankcomputing.co.uk/software/pyqt/intro"
license=('GPL') license=('GPL')
makedepends=('python-sip' 'python-dbus' 'python2-sip' 'phonon-qt4' 'mesa' makedepends=('python-sip' 'python-dbus' 'python2-sip' 'phonon-qt4' 'mesa'
'python2-opengl' 'qt-assistant-compat' 'qtwebkit' 'python2-dbus') 'python2-opengl' 'qt-assistant-compat' 'qtwebkit' 'python2-dbus')
source=("http://downloads.sourceforge.net/pyqt/PyQt-x11-gpl-${pkgver}.tar.gz" source=("http://downloads.sourceforge.net/pyqt/PyQt4_gpl_x11-${pkgver}.tar.gz"
"PyQt4-4.7.3-qreal_float_support.patch") "PyQt4-4.7.3-qreal_float_support.patch")
md5sums=('2fe8265b2ae2fc593241c2c84d09d481' md5sums=('eb8c338f2d8842aa7655e8e1aa840bed'
'7958e9e630963f1be44ea77c2329bb94') '7958e9e630963f1be44ea77c2329bb94')
build() { build() {
cd "${srcdir}"/PyQt-x11-gpl-${pkgver} cd PyQt4_gpl_x11-${pkgver}
patch -p1 -i "${srcdir}"/PyQt4-4.7.3-qreal_float_support.patch patch -p1 -i "${srcdir}"/PyQt4-4.7.3-qreal_float_support.patch
cd "${srcdir}" cd "${srcdir}"
cp -a PyQt-x11-gpl-${pkgver} Py2Qt-x11-gpl-${pkgver} cp -a PyQt4_gpl_x11-${pkgver}{,-py2}
cd PyQt-x11-gpl-${pkgver} cd PyQt4_gpl_x11-${pkgver}
python configure-ng.py \ python configure-ng.py \
--confirm-license \ --confirm-license \
--no-sip-files \ --no-sip-files \
@ -41,7 +41,7 @@ build() {
make make
### Python2 version ### ### Python2 version ###
cd ../Py2Qt-x11-gpl-${pkgver} cd ../PyQt4_gpl_x11-${pkgver}-py2
python2 configure-ng.py \ python2 configure-ng.py \
--confirm-license \ --confirm-license \
--no-sip-files \ --no-sip-files \
@ -61,7 +61,7 @@ package_pyqt4-common(){
conflicts=('pyqt-common') conflicts=('pyqt-common')
provides=("pyqt-common=${pkgver}") provides=("pyqt-common=${pkgver}")
cd PyQt-x11-gpl-${pkgver} cd PyQt4_gpl_x11-${pkgver}
make -C pyrcc INSTALL_ROOT="${pkgdir}" install make -C pyrcc INSTALL_ROOT="${pkgdir}" install
make -C pylupdate INSTALL_ROOT="${pkgdir}" install make -C pylupdate INSTALL_ROOT="${pkgdir}" install
@ -81,7 +81,7 @@ package_python-pyqt4(){
conflicts=('pyqt') conflicts=('pyqt')
provides=("pyqt=${pkgver}") provides=("pyqt=${pkgver}")
cd PyQt-x11-gpl-${pkgver} cd PyQt4_gpl_x11-${pkgver}
# INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install
@ -101,7 +101,7 @@ package_python2-pyqt4(){
conflicts=('python2-pyqt') conflicts=('python2-pyqt')
provides=("python2-pyqt=${pkgver}") provides=("python2-pyqt=${pkgver}")
cd Py2Qt-x11-gpl-${pkgver} cd PyQt4_gpl_x11-${pkgver}-py2
# INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR
make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install