Date: Sunday, February 10, 2019 @ 14:55:57 Author: arojas Revision: 345834
Split from PyQt5 Added: pyqtwebengine/ pyqtwebengine/trunk/ pyqtwebengine/trunk/PKGBUILD ----------+ PKGBUILD | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) Added: pyqtwebengine/trunk/PKGBUILD =================================================================== --- pyqtwebengine/trunk/PKGBUILD (rev 0) +++ pyqtwebengine/trunk/PKGBUILD 2019-02-10 14:55:57 UTC (rev 345834) @@ -0,0 +1,68 @@ +# Maintainer: Antonio Rojas <[email protected]> +# Maintainer: Felix Yan <[email protected]> + +pkgbase=pyqtwebengine +pkgname=(python-pyqtwebengine python2-pyqtwebengine pyqtwebengine-common) +pkgver=5.12 +pkgrel=1 +arch=(x86_64) +url="https://www.riverbankcomputing.com/software/pyqtwebengine/intro" +license=(GPL) +makedepends=(sip qt5-webengine python-pyqt5 python2-pyqt5) +source=("https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/PyQtWebEngine_gpl-$pkgver.tar.gz") +sha256sums=('b6ea036e7e406aeb7728318fb2980f23bd8d4086b431277faec1c09df9fb3f49') + +prepare() { + cp -a PyQtWebEngine_gpl-$pkgver{,-py2} +} + +build() { + cd "$srcdir"/PyQtWebEngine_gpl-$pkgver + python configure.py + make + + cd "$srcdir"/PyQtWebEngine_gpl-$pkgver-py2 + python2 configure.py + make +} + +package_pyqtwebengine-common(){ + pkgdesc="Common files shared between python-pyqtwebengine and python2-pyqtwebengine" + depends=(qt5-webengine) + + cd PyQtWebEngine_gpl-$pkgver + install -Dm644 PyQtWebEngine.api -t "$pkgdir"/usr/share/qt/qsci/api/python + + install -d "$pkgdir"/usr/share/sip/PyQt5 + cp -a sip/* "$pkgdir"/usr/share/sip/PyQt5 +} + +package_python-pyqtwebengine(){ + pkgdesc="Python 3 bindings for QtWebEngine" + depends=(python-pyqt5 qt5-webengine) + + cd PyQtWebEngine_gpl-$pkgver + make INSTALL_ROOT="$pkgdir" install -j1 + + # compile Python bytecode + python -m compileall -d / "$pkgdir"/usr/lib + python -O -m compileall -d / "$pkgdir"/usr/lib + + # Provided by pyqtwebengine-common + rm -r "$pkgdir"/usr/share +} + +package_python2-pyqtwebengine(){ + pkgdesc="Python 2 bindings for QtWebEngine" + depends=(python2-pyqt5 qt5-webengine) + + cd PyQtWebEngine_gpl-$pkgver-py2 + make INSTALL_ROOT="$pkgdir" install -j1 + + # compile Python bytecode + python2 -m compileall -d / "$pkgdir"/usr/lib + python2 -O -m compileall -d / "$pkgdir"/usr/lib + + # Provided by pyqtwebengine-common + rm -r "$pkgdir"/usr/share +}
