# Template file for 'python-PyQt5' pkgname=python-PyQt5 version=5.13.0 revision=1 _sipver=4.19.18 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-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="https://www.riverbankcomputing.com/static/Downloads/PyQt5/${version}/PyQt5_gpl-${version}.tar.gz" checksum=0cdbffe5135926527b61cc3692dd301cd0328dd87eeaf1313e610787c46faff9 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 <