diff options
author | Mark Blakeney | 2022-10-09 22:39:49 +1000 |
---|---|---|
committer | Mark Blakeney | 2022-10-09 22:39:49 +1000 |
commit | 82512341f44666854fef933b52c5b1a29f275865 (patch) | |
tree | d7f70046aa6841da601e12c70727adbb7006a05a | |
parent | 9588ffb5f61c2e0ba3143a1badd05692ab05e534 (diff) | |
download | aur-82512341f44666854fef933b52c5b1a29f275865.tar.gz |
Simplify PKGBUILD
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 11 insertions, 25 deletions
@@ -5,7 +5,8 @@ pkgbase = b2restore url = https://github.com/bulletmark/b2restore arch = any license = GPL3 - makedepends = python-pip + makedepends = python-build + makedepends = python-installer makedepends = python-wheel depends = python>=3.5 source = b2restore-1.11.tar.gz::https://github.com/bulletmark/b2restore/archive/1.11.tar.gz @@ -4,36 +4,21 @@ pkgver=1.11 pkgrel=1 pkgdesc="Program to recreate Backblaze B2 file archive at specified date+time." url="https://github.com/bulletmark/$pkgname" -license=("GPL3") -arch=("any") +license=(GPL3) +arch=(any) depends=("python>=3.5") -makedepends=("python-pip" "python-wheel") +makedepends=(python-build python-installer python-wheel) source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") md5sums=('625026dfe6a1385557bed7735413e780') -package() { +build() { cd "$srcdir/$pkgname-$pkgver" + python -m build --wheel --no-isolation +} - PIP_CONFIG_FILE=/dev/null pip install \ - --root="$pkgdir" \ - --isolated \ - --ignore-installed \ - --no-deps \ - --disable-pip-version-check \ - --no-python-version-warning \ - --no-warn-script-location \ - --no-cache-dir \ - --no-compile \ - --progress-bar=off \ - --root-user-action=ignore \ - . - - local pdir=$(python -c "import site; print(site.getsitepackages()[0])") - local _pkgname="${pkgname//-/_}" - cd "$pkgdir/$pdir" - rm -f $_pkgname-*.dist-info/direct_url.json - sed -i "/\/direct_url.json,/d" $_pkgname-*.dist-info/RECORD - python -O -m compileall -q . +package() { + cd "$srcdir/$pkgname-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl } # vim:set ts=2 sw=2 et: |