aboutsummaryrefslogtreecommitdiffstats
path: root/community/py-pyflakes/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py-pyflakes/APKBUILD')
-rw-r--r--community/py-pyflakes/APKBUILD9
1 files changed, 6 insertions, 3 deletions
diff --git a/community/py-pyflakes/APKBUILD b/community/py-pyflakes/APKBUILD
index eb2369b730..4dbc3d20ae 100644
--- a/community/py-pyflakes/APKBUILD
+++ b/community/py-pyflakes/APKBUILD
@@ -3,12 +3,14 @@
pkgname=py-pyflakes
_pkgname=${pkgname#py-}
pkgver=2.1.1
-pkgrel=3
+pkgrel=4
pkgdesc="A passive checker of Python programs"
url="https://github.com/pyflakes/pyflakes"
arch="noarch"
license="MIT"
-makedepends="python2-dev python3-dev py-setuptools"
+_py2deps="py2-setuptools"
+_py3deps="py3-setuptools"
+makedepends="python2-dev python3-dev py-setuptools $_py2deps $_py3deps"
subpackages="py3-$_pkgname:_py3 py2-$_pkgname:_py2"
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
@@ -35,10 +37,12 @@ package() {
_py2() {
replaces=pyflakes
provides="pyflakes=$pkgver-r$pkgrel"
+ depends="python2 $_py2deps"
_py python2
}
_py3() {
+ depends="python3 $_py3deps"
_py python3
}
@@ -46,7 +50,6 @@ _py() {
local python="$1"
local pyver="${1#python}"
pkgdesc="$pkgdesc (for $python)"
- depends="$python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"