summaryrefslogtreecommitdiffstats
path: root/testing/py-flake8/APKBUILD
blob: 34e140ff07f4547a08aad8aa4fbe121a1395fc3a (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
41
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-flake8
_pkgname=flake8
pkgver=2.2.3
pkgrel=0
pkgdesc="A modular source code checker"
url="https://bitbucket.org/tarek/flake8/wiki/Home"
arch="noarch"
license="MIT"
depends="python py-setuptools py-mccabe py-pep8 pyflakes"
depends_dev=""
makedepends="python-dev"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_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="dc26f97ab25f659761aee131a25e98b6  flake8-2.2.3.tar.gz"
sha256sums="455ac100727f183714473f477c9ab786579c533b7beb3327f6f79c8215057968  flake8-2.2.3.tar.gz"
sha512sums="71b7e52486dc1d1381cee879dfcecc057f51a49a48015b7c7be57458d3be3d5ef7cd30c51a0fe08063a6dcfb5dc9b0c669eb6b16efaf48ac6edf8176596670c1  flake8-2.2.3.tar.gz"