aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flake8/APKBUILD
blob: ad221710ce92c64d5a38c17ff363892f17c1cb13 (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.1.0
pkgrel=0
pkgdesc="A modular source code checker"
url="https://bitbucket.org/tarek/flake8/wiki/Home"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools py-mccabe py-pep8 pyflakes"
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="cf326cfb88a1db6c5b29a3a6d9efb257  flake8-2.1.0.tar.gz"
sha256sums="098ab7991067c08cfaa4716de20066d90f66dbc71502114ea8cad9a9fd5c9512  flake8-2.1.0.tar.gz"
sha512sums="bf961d76ed08dafe7c2a9b767594577a57a2276166e515f1d84654223aa50879c5ee1e20919b3a4c7576c7d549037c8cfe67c11ab1f6648a0205200f5060950b  flake8-2.1.0.tar.gz"