aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pep8/APKBUILD
blob: 7f101fec11563c41aba3541c39bdea262bca2e58 (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-pep8
_pkgname=pep8
pkgver=1.4.6
pkgrel=0
pkgdesc="A Python style guide checker"
url="https://pypi.python.org/pypi/pep8/"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
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="a03bb494859e87b42601b61b1b043a0c  pep8-1.4.6.tar.gz"
sha256sums="603a46e5c358ce20ac4807a0eeafac7505d1125a4c1bd8378757ada06f61bed8  pep8-1.4.6.tar.gz"
sha512sums="3752bef4cf8064b6f965bde0ccbe5e546c1e53496814c49d959d2148d9707848d0ebb79c9394f4b1a43575bab61db8ea58ac3bffb24d6f8d41abddffaf483f55  pep8-1.4.6.tar.gz"