# Template file for 'python-PyQt5' pkgname=python-PyQt5 version=5.11.3 revision=3 _sipver=4.19.13 lib32disabled=yes wrksrc="PyQt5_gpl-${version}" pycompile_module="PyQt5" hostmakedepends="pkg-config python-devel python3-devel python-sip-devel python3-sip-devel python-dbus-devel qt5-tools-devel qt5-connectivity-devel qt5-declarative-devel qt5-location-devel qt5-multimedia-devel qt5-sensors-devel qt5-serialport-devel qt5-svg-devel qt5-webchannel-devel qt5-webengine-devel qt5-webkit-devel qt5-websockets-devel qt5-x11extras-devel qt5-xmlpatterns-devel qt5-networkauth-devel pulseaudio-devel python-enum34" makedepends="${hostmakedepends/pkg-config/}" depends="python-sip-PyQt5>=${_sipver} python-enum34" short_desc="Python2 bindings for the Qt5 toolkit" maintainer="Alessio Sergi " homepage="https://riverbankcomputing.com/software/pyqt/intro" license="GPL-3.0-only" distfiles="${SOURCEFORGE_SITE}/pyqt/PyQt5_gpl-${version}.tar.gz" checksum=c9b57d15601d436faf35dacf8e0acefa220194829a653e771e80b189b3261073 pre_build() { mkdir -p pyqt5-${py2_ver} mv * pyqt5-${py2_ver} || true cp -a pyqt5-${py2_ver} pyqt5-${py3_ver} rm -rf pyqt5-${py2_ver}/pyuic/uic/port_v3 rm -rf pyqt5-${py3_ver}/pyuic/uic/port_v2 } do_build() { local _sysroot= _configuration= py_abiver= qt_version for pyver in $py2_ver $py3_ver; do if [ "$pyver" = "$py3_ver" ]; then py_abiver="$py3_abiver" fi cd $wrksrc/pyqt5-$pyver if [ "$CROSS_BUILD" ]; then qt_version=$(qmake -query QT_VERSION) cat > pyqt5_${XBPS_CROSS_TRIPLET}.cfg <