author | Felix Yan
<felixonmars@archlinux.org> 2016-04-27 18:36:04 UTC |
committer | Felix Yan
<felixonmars@archlinux.org> 2016-04-27 18:36:04 UTC |
parent | 150cdf7183a4aea48d9688703746e04d44ee2d33 |
PKGBUILD | +17 | -13 |
diff --git a/PKGBUILD b/PKGBUILD index bd2bd6c..f1d5862 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -6,9 +6,9 @@ pkgbase=pyqt5 pkgname=('pyqt5-common' 'python-pyqt5' 'python2-pyqt5') -pkgver=5.5.1 +pkgver=5.6 _pkgver=$pkgver -pkgrel=2 +pkgrel=1 arch=('i686' 'x86_64') url="http://riverbankcomputing.co.uk/software/pyqt/intro" license=('GPL') @@ -16,14 +16,19 @@ makedepends=('python-sip' 'python2-sip' 'python-opengl' 'python2-opengl' 'python2-dbus' 'python-dbus' 'qt5-connectivity' 'qt5-enginio' 'qt5-multimedia' 'qt5-tools' 'qt5-serialport' 'qt5-svg' 'qt5-webengine' 'qt5-websockets' 'qt5-x11extras') -source=("http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$pkgver/PyQt-gpl-$pkgver.tar.gz") -md5sums=('586ed481b734c665b52fbb4f32161ff7') +source=("http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-$pkgver/PyQt5_gpl-$pkgver.tar.gz") +md5sums=('dbfc885c0548e024ba5260c4f44e0481') -build() { - cp -a PyQt-gpl-${_pkgver} Py2Qt-gpl-${_pkgver} +prepare() { + # The additional include path was removed due to this line, I don't really know why they are doing this... + sed -i '/target_config.dbus_inc_dirs = \[\]/d' PyQt5_gpl-${_pkgver}/configure.py + + cp -a PyQt5_gpl-${_pkgver}{,-py2} +} - cd PyQt-gpl-${_pkgver} - python3 configure.py \ +build() { + cd "$srcdir"/PyQt5_gpl-${_pkgver} + python configure.py \ --confirm-license \ --no-sip-files \ --qsci-api \ @@ -34,8 +39,7 @@ build() { make - ### Python2 version ### - cd ../Py2Qt-gpl-${_pkgver} + cd "$srcdir"/PyQt5_gpl-${_pkgver}-py2 python2 configure.py \ --confirm-license \ --no-sip-files \ @@ -52,7 +56,7 @@ package_pyqt5-common(){ pkgdesc="Common PyQt files shared between python-pyqt5 and python2-pyqt5" depends=('qt5-base') - cd PyQt-gpl-${_pkgver} + cd PyQt5_gpl-${_pkgver} make -C pyrcc DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install make -C pylupdate DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install @@ -75,7 +79,7 @@ package_python-pyqt5(){ 'qt5-declarative: QtQml, qmlplugin' 'qt5-serialport: QtSerialPort') - cd PyQt-gpl-${_pkgver} + cd PyQt5_gpl-${_pkgver} # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install @@ -97,7 +101,7 @@ package_python2-pyqt5(){ 'qt5-declarative: QtQml, qmlplugin' 'qt5-serialport: QtSerialPort') - cd Py2Qt-gpl-${_pkgver} + cd PyQt5_gpl-${_pkgver}-py2 # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR make DESTDIR="${pkgdir}" INSTALL_ROOT="${pkgdir}" install