void-packages/srcpkgs/python3-PyQt5-webengine/template
2024-12-22 15:03:34 +07:00

38 lines
1.3 KiB
Bash

# Template file for 'python3-PyQt5-webengine'
pkgname=python3-PyQt5-webengine
version=5.15.7
revision=1
build_style=sip-build
build_helper="qmake python3"
hostmakedepends="pkg-config qt5-qmake sip python3-PyQt-builder"
makedepends="qt5-declarative-devel qt5-webchannel-devel qt5-location-devel
qt5-webengine-devel python3-devel python3-PyQt5-devel python3-sip-PyQt5"
depends="python3-PyQt5>=${version} python3-PyQt5-webchannel>=${version}
python3-sip-PyQt5>=12.16.0"
short_desc="Python 3 bindings for the Qt5 toolkit - webengine module"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="GPL-3.0-only"
homepage="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"
distfiles="${PYPI_SITE}/P/PyQtWebEngine/PyQtWebEngine-${version}.tar.gz"
checksum=f121ac6e4a2f96ac289619bcfc37f64e68362f24a346553f5d6c42efa4228a4d
lib32disabled=yes
if [ "$XBPS_TARGET_ENDIAN" != le ]; then
broken="no webengine for big endian"
fi
if [ "$XBPS_WORDSIZE" != "$XBPS_TARGET_WORDSIZE" ]; then
broken="webengine can be built only if word size matches"
fi
post_extract() {
rm -rf pyuic/uic/port_v2
}
python3-PyQt5-webengine-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove ${py3_sitelib}/PyQt5/bindings
}
}