author | Antonio Rojas
<arojas@archlinux.org> 2019-01-28 06:24:14 UTC |
committer | Antonio Rojas
<arojas@archlinux.org> 2019-01-28 06:24:14 UTC |
parent | f5253462a633b833b1e3306bea37fe30275ac72d |
PKGBUILD | +13 | -1 |
diff --git a/PKGBUILD b/PKGBUILD index 399ead1..045d5b6 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,7 +7,7 @@ pkgbase=pyqt5 pkgname=('pyqt5-common' 'python-pyqt5' 'python2-pyqt5') pkgver=5.11.3 -pkgrel=2 +pkgrel=3 arch=('x86_64') url="http://riverbankcomputing.co.uk/software/pyqt/intro" license=('GPL') @@ -70,6 +70,12 @@ package_python-pyqt5(){ # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install -j1 + # Remove unused py2 version of uic modules: + rm -r "$pkgdir"/usr/lib/python*/site-packages/PyQt5/uic/port_v2 + + # compile Python bytecode + python -m compileall -d / "$pkgdir"/usr/lib + # Provided by pyqt-common rm "$pkgdir"/usr/share/qt/qsci/api/python/PyQt5.api } @@ -96,6 +102,12 @@ package_python2-pyqt5(){ # INSTALL_ROOT is needed for the QtDesigner module, the other Makefiles use DESTDIR make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install -j1 + # Remove unused py3 version of uic modules: + rm -r "$pkgdir"/usr/lib/python*/site-packages/PyQt5/uic/port_v3 + + # compile Python bytecode + python2 -m compileall -d / "$pkgdir"/usr/lib + # Fix conflicts with python-pyqt5 mv "$pkgdir"/usr/bin/{,python2-}pyuic5 mv "$pkgdir"/usr/bin/{,python2-}pylupdate5