summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d6c8d5e2aa278ca4d6efb7a13577431c0e244b3c (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.1
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=('87eb60c299de5f20269aa18588ca6dd0d79580df5adc6edf8ac1e184fbe4885c'
            '4a988dd3598832cd3653de20dc33cb677d0fb53ab5551c879ca31280ae653675')

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
}