aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flake8/APKBUILD
blob: c32ba93f41e064265c64f1f30c73a3f14f2db52f (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.3.0
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="488d6166f6b9ef9fe9d433b95e77dc07  flake8-2.3.0.tar.gz"
sha256sums="5ee1a43ccd0716d6061521eec6937c983efa027793013e572712c4da55c7c83e  flake8-2.3.0.tar.gz"
sha512sums="827596fe8cbf4eb25e9217f4869e806c980a77d9ca27a94a6f4978383d4ebd35681a8afea843ee667ad885425677f84e88a49e802e5c7d3ef1ee09be924340d3  flake8-2.3.0.tar.gz"