diff options
author | Philipp A | 2019-03-11 18:44:24 +0100 |
---|---|---|
committer | Philipp A | 2019-03-11 18:44:24 +0100 |
commit | cdc3f676c96bc54ecdc66b38d6e1a41d4117a873 (patch) | |
tree | 5a163c93be5064457b1e1a8dc56404a83b2e28e7 | |
parent | 9af9d8e28c6432ea5c2896b81e35478ce5db42cb (diff) | |
download | aur-cdc3f676c96bc54ecdc66b38d6e1a41d4117a873.tar.gz |
install-wheel-scripts
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 10 |
2 files changed, 5 insertions, 8 deletions
@@ -1,10 +1,11 @@ pkgbase = python-modulegraph pkgdesc = determines a dependency graph between Python modules primarily by bytecode analysis for import statements pkgver = 0.17 - pkgrel = 2 + pkgrel = 3 url = https://bitbucket.org/ronaldoussoren/modulegraph arch = any license = MIT + makedepends = install-wheel-scripts depends = python depends = python-altgraph noextract = modulegraph-0.17-py2.py3-none-any.whl @@ -3,12 +3,13 @@ _name=modulegraph pkgname=python-modulegraph pkgver=0.17 -pkgrel=2 +pkgrel=3 pkgdesc='determines a dependency graph between Python modules primarily by bytecode analysis for import statements' arch=('any') url="https://bitbucket.org/ronaldoussoren/$_name" license=('MIT') depends=('python' 'python-altgraph') +makedepends=(install-wheel-scripts) _pyarch=py2.py3 _wheel="${_name/-/_}-$pkgver-$_pyarch-none-any.whl" source=("https://files.pythonhosted.org/packages/$_pyarch/${_name::1}/$_name/$_wheel") @@ -19,10 +20,5 @@ package() { local site="$pkgdir/usr/lib/$(readlink /bin/python3)/site-packages" mkdir -p "$site" unzip "$_wheel" -d "$site" - - cat >modulegraph.sh <<-EOF - #!/bin/sh - exec python3 -m modulegraph "\$@" - EOF - install -Dm755 modulegraph.sh "$pkgdir/usr/bin/modulegraph" + install-wheel-scripts --prefix="$pkgdir/usr" "$_wheel" } |