aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-mccabe/APKBUILD
blob: a0585360ad85cdc08eea7cc2c2ceb6402634ff2d (plain) (blame)
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: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-mccabe
_pkgname=mccabe
pkgver=0.3.1
pkgrel=0
pkgdesc="A McCabe complexity checker plugin for Flake8"
url="https://github.com/flintwork/mccabe"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.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="9a1570c470ff5db678cc0c03d5c0c237  mccabe-0.3.1.tar.gz"
sha256sums="5f7ea6fb3aa9afe146d07fd6d5cedf788747d8b0c29e44732453c2b2db1e3d16  mccabe-0.3.1.tar.gz"
sha512sums="83a5cb389343628b8a464f8f17452f116557735ed0a5f40411fe06f63af1f7c5ac4501fce2617a22fc7fb8395918deda2afba39728c1e72713930f14dddf08f9  mccabe-0.3.1.tar.gz"