diff options
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 5 insertions, 9 deletions
@@ -1,10 +1,11 @@ pkgbase = python-future-fstrings pkgdesc = A backport of fstrings to python<3.6 pkgver = 1.0.0 - pkgrel = 1 + pkgrel = 2 url = https://github.com/asottile/future-fstrings arch = any license = MIT + makedepends = install-wheel-scripts depends = python noextract = future_fstrings-1.0.0-py2.py3-none-any.whl source = https://files.pythonhosted.org/packages/py2.py3/f/future-fstrings/future_fstrings-1.0.0-py2.py3-none-any.whl @@ -3,12 +3,13 @@ _name=future-fstrings pkgname=python-$_name pkgver=1.0.0 -pkgrel=1 +pkgrel=2 pkgdesc='A backport of fstrings to python<3.6' arch=(any) url="https://github.com/asottile/$_name" license=(MIT) depends=(python) +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,11 +20,5 @@ package() { local site="$pkgdir/usr/lib/$(readlink /bin/python3)/site-packages" mkdir -p "$site" unzip "$_wheel" -d "$site" - - cat >future-fstrings-show.py <<-EOF - #!/usr/bin/env python3 - from future_fstrings import main - main() - EOF - install -Dm755 future-fstrings-show.py "$pkgdir/usr/bin/future-fstrings-show" + install-wheel-scripts --prefix="$pkgdir/usr" "$_wheel" } |