Commit 0d81a471 authored by Jeff Huang's avatar Jeff Huang 🤔

[skip-ci] pyqtwebengine: only build python3 version

parent 551ad125
Pipeline #3231 skipped
......@@ -3,32 +3,20 @@
# Maintainer: Felix Yan <felixonmars@archlinux.org>
pkgbase=pyqtwebengine
pkgname=(python3-pyqtwebengine python2-pyqtwebengine pyqtwebengine-common)
pkgname=(python3-pyqtwebengine pyqtwebengine-common)
pkgver=5.12.1
pkgrel=1
arch=(x86_64)
url="https://www.riverbankcomputing.com/software/pyqtwebengine/intro"
license=(GPL)
makedepends=(sip qt5-webengine python3-pyqt5 python2-pyqt5)
makedepends=(sip qt5-webengine python3-pyqt5)
source=("https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/${pkgver}/PyQtWebEngine_gpl-$pkgver.tar.gz")
sha256sums=('860704672ea1b616e1347be1f347bc1c749e64ed378370863fe209e84e9bd473')
prepare() {
cp -a PyQtWebEngine_gpl-$pkgver{,-py2}
}
build() {
cd "$srcdir"/PyQtWebEngine_gpl-$pkgver
python3 configure.py \
--no-sip-files \
--pyqt=PyQt5 \
-q /usr/bin/qmake-qt5
make
cd "$srcdir"/PyQtWebEngine_gpl-$pkgver-py2
python2 configure.py \
--no-sip-files \
--pyqt=PyQt5 \
-q /usr/bin/qmake-qt5
make
}
......@@ -54,14 +42,3 @@ package_python3-pyqtwebengine(){
# Provided by pyqtwebengine-common
rm -r "$pkgdir"/usr/share
}
package_python2-pyqtwebengine(){
pkgdesc="Python 2 bindings for QtWebEngine"
depends=(python2-pyqt5 pyqtwebengine-common)
cd PyQtWebEngine_gpl-$pkgver-py2
make INSTALL_ROOT="$pkgdir" install -j1
# Provided by pyqtwebengine-common
rm -r "$pkgdir"/usr/share
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment