mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/pyqt5 to 5.11.3-3
This commit is contained in:
parent
ffd816ad2e
commit
0a6fcbae3f
1 changed files with 13 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue