45 lines
1.4 KiB
Bash
45 lines
1.4 KiB
Bash
# Template file for 'python-PyQt5-webengine'
|
|
pkgname=python-PyQt5-webengine
|
|
version=5.15.0
|
|
revision=1
|
|
wrksrc="PyQtWebEngine-${version}"
|
|
hostmakedepends="pkg-config qt5-qmake python python-PyQt5"
|
|
makedepends="qt5-declarative-devel qt5-webchannel-devel qt5-location-devel
|
|
qt5-webengine-devel python-devel python-PyQt5-devel"
|
|
depends="python-PyQt5>=${version}_1 python-PyQt5-webchannel>=${version}_1"
|
|
short_desc="Python2 bindings for the Qt5 toolkit - webengine module"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"
|
|
distfiles="${PYPI_SITE}/P/PyQtWebEngine/PyQtWebEngine-${version}.tar.gz"
|
|
checksum=670812688e40bf75f70ddf01eadd897d231300318d3856b275bf8e7e0085bf75
|
|
lib32disabled=yes
|
|
nocross="configure script is broken for cross builds"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
ppc64le*) ;;
|
|
ppc*) broken="no webengine for big endian ppc";;
|
|
arm*) broken="depends on qt5-webengine";;
|
|
esac
|
|
|
|
post_extract() {
|
|
rm -rf pyuic/uic/port_v3
|
|
}
|
|
|
|
do_configure() {
|
|
python2 configure.py \
|
|
QMAKE_CC="${CC}" QMAKE_CFLAGS="${CFLAGS}" \
|
|
QMAKE_CXX="${CXX}" QMAKE_CXXFLAGS="${CXXFLAGS}" \
|
|
QMAKE_LINK="${CXX}" QMAKE_LINK_SHLIB="${CXX}"
|
|
QMAKE_LFLAGS="${LDFLAGS}" QMAKE_STRIP=""
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} INSTALL_ROOT=${DESTDIR} install
|
|
rm -rf ${DESTDIR}/usr/share
|
|
}
|