aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-pep8/APKBUILD
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-12-24 23:42:27 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-12-24 23:51:53 +0100
commitd89a0c38195885898dc5ca4eb96fb9e458ed9c19 (patch)
tree9c525dff6b00645d469e29001661d9b43b53af8e /main/py-pep8/APKBUILD
parent49768085ada7f6ad50489a836192cae639da12b5 (diff)
downloadaports-d89a0c38195885898dc5ca4eb96fb9e458ed9c19.tar.bz2
aports-d89a0c38195885898dc5ca4eb96fb9e458ed9c19.tar.xz
main/py-pep8: fix multiple mistakes in abuild
Diffstat (limited to 'main/py-pep8/APKBUILD')
-rw-r--r--main/py-pep8/APKBUILD23
1 files changed, 10 insertions, 13 deletions
diff --git a/main/py-pep8/APKBUILD b/main/py-pep8/APKBUILD
index c97bd0f038..9fcb1d3157 100644
--- a/main/py-pep8/APKBUILD
+++ b/main/py-pep8/APKBUILD
@@ -3,28 +3,28 @@
pkgname=py-pep8
_pkgname=pep8
pkgver=1.7.0
-pkgrel=1
+pkgrel=2
pkgdesc="A Python style guide checker"
url="https://pypi.python.org/pypi/pep8/"
arch="noarch"
license="MIT"
-depends=""
makedepends="python2-dev python3-dev py-setuptools"
-install=""
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
-options="!check" #no testsuite
+options="!check" # no testsuite
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir"/$_pkgname-$pkgver
+builddir="$srcdir/$_pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py build
python3 setup.py build
}
package() {
- cd "$_builddir"
+ cd "$builddir"
+
mkdir -p "$pkgdir"/usr/bin
+ ln -s pep8-3 "$pkgdir"/usr/bin/pep8
}
_py2() {
@@ -41,17 +41,14 @@ _py() {
local python="$1"
local pyver="${1:6:1}"
pkgdesc="$pkgdesc (for $python)"
- depends="$depends $python"
+ depends="$python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
$python setup.py --quiet install --prefix=/usr --root="$subpkgdir"
- local path; for bin in "$subpkgdir"/usr/bin/*; do
- mv -f "$bin" "${bin}-$pyver"
+ local path; for path in "$subpkgdir"/usr/bin/*; do
+ mv "$path" "$path-$pyver"
done
}
-
-md5sums="2b03109b0618afe3b04b3e63b334ac9d pep8-1.7.0.tar.gz"
-sha256sums="a113d5f5ad7a7abacef9df5ec3f2af23a20a28005921577b15dd584d099d5900 pep8-1.7.0.tar.gz"
sha512sums="0077dac97846fe3a5fc654cd3ce8578845cf3b93ee097a3ae6ff2db4ae0797ad5766c69f036d6a5add786eb929a9beb6d657ab693227b8df2ba46ec0f9284b0a pep8-1.7.0.tar.gz"