aboutsummaryrefslogtreecommitdiffstats
path: root/main/flake8
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-06 22:10:14 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-06 22:10:14 +0100
commit9447e750fac8000bbc2cf15735e668f8694294eb (patch)
tree4aef36be0b0b21edce695da8665851e490e98598 /main/flake8
parent10195720cc506a13da228cb5763f3a3694c3842b (diff)
downloadaports-9447e750fac8000bbc2cf15735e668f8694294eb.tar.bz2
aports-9447e750fac8000bbc2cf15735e668f8694294eb.tar.xz
main/flake8: improve abuild
Diffstat (limited to 'main/flake8')
-rw-r--r--main/flake8/APKBUILD19
1 files changed, 3 insertions, 16 deletions
diff --git a/main/flake8/APKBUILD b/main/flake8/APKBUILD
index 6657f1156a..f319f59676 100644
--- a/main/flake8/APKBUILD
+++ b/main/flake8/APKBUILD
@@ -8,30 +8,17 @@ url="https://gitlab.com/pycqa/flake8"
arch="noarch"
license="MIT"
depends="python2 py-setuptools py-mccabe py-pep8 pyflakes"
-depends_dev=""
makedepends="python2-dev"
-install=""
-subpackages=""
source="https://pypi.io/packages/source/f/$pkgname/$pkgname-$pkgver.tar.gz"
-
-_builddir="$srcdir"/$pkgname-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py build || return 1
}
package() {
- cd "$_builddir"
+ cd "$builddir"
python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}