mirror of
https://github.com/outbackdingo/ports.git
synced 2026-01-28 10:20:07 +00:00
27 lines
748 B
Plaintext
27 lines
748 B
Plaintext
# description : A set of Python 3.x bindings for the Qt5 toolkit (python2)
|
|
# depends : python2-sip-pyqt5 qtwebengine qt5-webkit python2-dbus python2-enum34
|
|
|
|
name=python2-pyqt5
|
|
version=5.15.2
|
|
release=1
|
|
source="https://www.riverbankcomputing.com/static/Downloads/PyQt5/$version/PyQt5_gpl-$version.tar.gz"
|
|
|
|
build() {
|
|
cd PyQt5_gpl-$version
|
|
|
|
python2 configure.py \
|
|
--confirm-license \
|
|
--no-sip-files \
|
|
-q /usr/bin/qmake
|
|
make
|
|
make DESTDIR="$PKG" INSTALL_ROOT="$PKG" install -j1
|
|
|
|
mv $PKG/usr/bin/pyrcc5{,-py2}
|
|
mv $PKG/usr/bin/pyuic5{,-py2}
|
|
mv $PKG/usr/bin/pylupdate5{,-py2}
|
|
|
|
rm $PKG/usr/lib/qt5/plugins/PyQt5/libpyqt5qmlplugin.so
|
|
rm $PKG/usr/lib/qt5/plugins/designer/libpyqt5.so
|
|
rm $PKG/usr/share/qt5/qsci/api/python/PyQt5.api
|
|
}
|