extra/pyqt5 to 5.11.3-3

This commit is contained in:
Kevin Mihelich 2019-01-28 13:37:18 +00:00
parent ffd816ad2e
commit 0a6fcbae3f

View file

@ -10,7 +10,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')
@ -75,6 +75,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
}
@ -101,6 +107,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