diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-25 00:01:45 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-25 00:06:08 +0100 |
commit | 3ed2200a331d78bcd0e31f08afa1d65d94987313 (patch) | |
tree | b8a262421cd22902195264c8a9dae4599e20e32b /main/py-flake8 | |
parent | 79aa8c1168d76be5d30729428679aa5965d4901f (diff) | |
download | aports-3ed2200a331d78bcd0e31f08afa1d65d94987313.tar.bz2 aports-3ed2200a331d78bcd0e31f08afa1d65d94987313.tar.xz |
main/py-flake8: fix multiple mistakes in abuild
Diffstat (limited to 'main/py-flake8')
-rw-r--r-- | main/py-flake8/APKBUILD | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/main/py-flake8/APKBUILD b/main/py-flake8/APKBUILD index 13b1a7e74b..5aaad99586 100644 --- a/main/py-flake8/APKBUILD +++ b/main/py-flake8/APKBUILD @@ -3,7 +3,7 @@ pkgname=py-flake8 _pkgname=${pkgname#py-} pkgver=3.4.1 -pkgrel=1 +pkgrel=2 pkgdesc="A modular source code checker" url="https://gitlab.com/pycqa/flake8" arch="noarch" @@ -11,7 +11,7 @@ license="MIT" depends="py-mccabe py-pep8 py-pyflakes" makedepends="python2-dev python3-dev py-setuptools" subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3" -options="!check" #no testsuite +options="!check" # no testsuite source="https://pypi.io/packages/source/f/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" @@ -23,36 +23,37 @@ build() { package() { cd "$builddir" + mkdir -p "$pkgdir"/usr/bin + ln -s flake8-3 "$pkgdir"/usr/bin/flake8 } _py2() { - replaces=flake8 - provides="flake8=$pkgver-r$pkgrel" - depends="${depends//py-/py2-}" - _py python2 + replaces=flake8 + provides="flake8=$pkgver-r$pkgrel" + depends="${depends//py-/py2-}" + _py python2 } _py3() { depends="${depends//py-/py3-}" - _py python3 + _py python3 } _py() { - local python="$1" - local pyver="${1:6:1}" - pkgdesc="$pkgdesc (for $python)" - depends="$depends $python" - install_if="$pkgname=$pkgver-r$pkgrel $python" - - cd "$builddir" - $python setup.py --quiet install --prefix=/usr --root="$subpkgdir" - #Add version suffix to executable files. - local path; for path in "$subpkgdir"/usr/bin/*; do - mv -f "$path" "${path%%}" - mv -f "${path%%}" "${path%%}-$pyver" - done -} + local python="$1" + local pyver="${1:6:1}" + pkgdesc="$pkgdesc (for $python)" + depends="$depends $python" + install_if="$pkgname=$pkgver-r$pkgrel $python" + cd "$builddir" + $python setup.py install --prefix=/usr --root="$subpkgdir" + + # Add version suffix to executable files. + local path; for path in "$subpkgdir"/usr/bin/*; do + mv "$path" "$path-$pyver" + done +} sha512sums="42df8fa0cf6f4bb4f3e52143028dee14d51a645aef19a0bab05000fef577e5bea3cc29f961acb0c98d92b76e635fdd2f0d689e23663a6c14d435d0410be94c87 flake8-3.4.1.tar.gz" |