blob: fe59e181b1ad3221b1dfeeaa83696a0edd43a0f4 (
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
|
# Maintainer: keutain < quentin dot aniere at gmail dot com>
# Contributor: Shae VanCleave
pkgname=python-pywebview
pkgver=5.0.5
pkgrel=1
pkgdesc="Build GUI for your Python program with JavaScript, HTML, and CSS."
arch=('any')
url='https://github.com/r0x0r/pywebview'
license=('BSD')
depends=('python-bottle' 'python-cryptography' 'python-proxy_tools' 'python-typing_extensions')
makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
optdepends=('pyside2: use with QtPy, PySide2'
'pyside6: use with QtPy, PySide6'
'python-gobject: use with GTK'
'python-pygobject-stubs: use with GTK'
'python-pyqt5: use with Qt'
'python-pyqt5-webengine: use with Qt'
'python-qtpy: use with Qt'
'webkit2gtk-4.1: use with GTK')
install="$pkgname.install"
source=("https://pypi.python.org/packages/source/p/pywebview/pywebview-$pkgver.tar.gz"
"https://raw.githubusercontent.com/r0x0r/pywebview/$pkgver/LICENSE")
sha256sums=('f2a39682bc144cd95fb6cdb16522a44d2ffe7974966486ed570d81d2e0a41319' # pkg.tar.gz
'4a988dd3598832cd3653de20dc33cb677d0fb53ab5551c879ca31280ae653675') # License
build() {
cd "${srcdir}/pywebview-${pkgver}"
python -m build --wheel --no-isolation
}
package() {
cd "${srcdir}"
install -Dm 644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd "pywebview-${pkgver}"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|