aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-setuptools-pep8/APKBUILD
blob: 9d13e7a9defca117fa75413448dbf39ef532c6d2 (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-setuptools-pep8
_pkgname=setuptools-pep8
pkgver=0.1.3
pkgrel=0
pkgdesc="Setuptools plugin for pep8"
url="https://github.com/CraigJPerry/setuptools-pep8"
arch="noarch"
license="BSD"
depends="python py-pep8"
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="4afdca526e4f7573749dc7af834fad17  setuptools-pep8-0.1.3.tar.gz"
sha256sums="9126a4bbb3cf4caf724a833d86e7c437aa161fc7568991a46a94e04173c2e18c  setuptools-pep8-0.1.3.tar.gz"
sha512sums="cfa0e17f502bc0dcf43cf696f95468053715ad1789c54762ae64ed73805e22fec6e6675848e90b75eba6d96dfff42a671cb560e16abb9d85753966694fa127fc  setuptools-pep8-0.1.3.tar.gz"