aboutsummaryrefslogtreecommitdiffstats
path: root/main/flake8/APKBUILD
blob: b5520a027ec903cc8c8776c5e5e3028667fb912e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=flake8
pkgver=2.6.2
pkgrel=0
pkgdesc="A modular source code checker"
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
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="cf4f63730fd35e736a8a99583b9158fd  flake8-2.6.2.tar.gz"
sha256sums="231cd86194aaec4bdfaa553ae1a1cd9b7b4558332fbc10136c044940d587a778  flake8-2.6.2.tar.gz"
sha512sums="4063fe716da8b65a95ef736a4bee41982aea771397b44357286493eb4ab296985284db77b2a546c3d00096e3a8cb5a9d6e2f546013d6d0435feaad074f080c7b  flake8-2.6.2.tar.gz"