diff options
author | Philipp A | 2019-03-11 18:41:43 +0100 |
---|---|---|
committer | Philipp A | 2019-03-11 18:41:43 +0100 |
commit | fbb93d6def8ff66ed539af31c21a73d87c6d8c39 (patch) | |
tree | acca1c6c45995087219a9e390928379204172e27 | |
parent | 48a4e27bd9ff7281bd615152f81834c6b4524757 (diff) | |
download | aur-fbb93d6def8ff66ed539af31c21a73d87c6d8c39.tar.gz |
install-wheel-scripts
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 5 insertions, 9 deletions
@@ -1,10 +1,11 @@ pkgbase = auditwheel pkgdesc = Cross-distribution Linux wheels pkgver = 2.0.0 - pkgrel = 2 + pkgrel = 3 url = https://github.com/pypa/auditwheel arch = any license = MIT + makedepends = install-wheel-scripts depends = python-wheel depends = python-pyelftools noextract = auditwheel-2.0.0-py3-none-any.whl @@ -2,12 +2,13 @@ pkgname=auditwheel pkgver=2.0.0 -pkgrel=2 +pkgrel=3 pkgdesc='Cross-distribution Linux wheels' arch=(any) url="https://github.com/pypa/auditwheel" license=(MIT) depends=(python-wheel python-pyelftools) +makedepends=(install-wheel-scripts) _pyarch=py3 _wheel="$pkgname-$pkgver-$_pyarch-none-any.whl" source=("https://files.pythonhosted.org/packages/$_pyarch/${pkgname::1}/$pkgname/$_wheel") @@ -18,11 +19,5 @@ package() { local site="$pkgdir/usr/lib/$(readlink /bin/python3)/site-packages" mkdir -p "$site" unzip "$_wheel" -d "$site" - - cat >auditwheel.py <<-EOF - #!/usr/bin/env python3 - from auditwheel.main import main - main() - EOF - install -Dm755 auditwheel.py "$pkgdir/usr/bin/auditwheel" + install-wheel-scripts --prefix="$pkgdir/usr" "$_wheel" } |