diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -4,25 +4,31 @@ pkgname=python-webruntime pkgver=0.5.8 -pkgrel=3 +pkgrel=4 pkgdesc='Launch HTML5 apps in the browser or a desktop-like runtime.' arch=('any') url='https://github.com/flexxui/webruntime' license=('BSD') depends=('python-dialite') -makedepends=('python-setuptools') +makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('08e4ea844e544b28433c35bd485cecaa672d60b5206877f7b4bb49d537fd248c') build() { cd "webruntime-$pkgver" - python setup.py build + python -m build --wheel --no-isolation } package() { + export PYTHONHASHSEED=0 cd "webruntime-$pkgver" - PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build - install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" + python -m installer --destdir="$pkgdir/" dist/*.whl + + local _site="$(python -c 'import site; print(site.getsitepackages()[0])')" + install -d "$pkgdir/usr/share/licenses/$pkgname/" + ln -s \ + "$_site/webruntime-$pkgver.dist-info/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/" } # vim: ts=2 sw=2 et: |