blob: e3e4dc409e9bd0f3ccfd5f3dcdda39c0ac1f8592 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Maintainer: Zen Wen <zen.8841@gmail.com>
pkgname=python-pyqt5-webkit
pkgdesc="Python bindings for the Qt5WebKit"
pkgver=5.15.7
pkgrel=3
arch=(x86_64)
url="https://riverbankcomputing.com/software/pyqt/intro"
license=(GPL)
groups=(pyqt5)
depends=(python-pyqt5 qt5-webkit)
makedepends=(sip pyqt-builder)
source=("https://pypi.python.org/packages/source/P/PyQt5/PyQt5-$pkgver.tar.gz")
sha256sums=('755121a52b3a08cb07275c10ebb96576d36e320e572591db16cfdbc558101594')
options=(debug)
build() {
cd PyQt5-$pkgver
sip-build \
--confirm-license \
--no-make \
--api-dir /usr/share/qt/qsci/api/python \
--pep484-pyi \
--enable QtCore \
--enable QtWebKit \
--enable QtWebKitWidgets
cd build
make
}
package(){
cd PyQt5-$pkgver/build
make INSTALL_ROOT="$pkgdir" install -j1
# Remove files provided by pyqt5:
rm -r "$pkgdir"/usr/{bin,share,lib/python*/site-packages/{*.dist-info,PyQt5/{QtCore.*,bindings/QtCore,uic,sip.pyi,py.typed,__init__.py}}}
rm "$pkgdir"/usr/lib/python3.10/site-packages/dbus/mainloop/pyqt5.abi3.so
# compile Python bytecode
python -m compileall -d / "$pkgdir"/usr/lib
python -O -m compileall -d / "$pkgdir"/usr/lib
}
|