aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-flake8-print/APKBUILD
blob: bc0b703cebce7c03ba1976095d71ecb94fb32751 (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-print
_pkgname=flake8-print
pkgver=1.5.0
pkgrel=0
pkgdesc="Extension for flake8 which lint for print statements"
url="https://github.com/jbkahn/flake8-print"
arch="noarch"
license="MIT"
depends="python py-flake8"
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="5435bc6aeb4397f178ab29d53f552e5c  flake8-print-1.5.0.tar.gz"
sha256sums="c870ffaecdfc6aef3e33ce0a95ebff2f104bf6c3f1704ee62316dd141405b5f6  flake8-print-1.5.0.tar.gz"
sha512sums="a4990ded06a186f2840a0e11e126a2fc9cbe342e898e2010d541f6123c4663322b526dd009dccbd8cad3e58b306b02a428f8360490e995f9e5efa5d0f805c5ef  flake8-print-1.5.0.tar.gz"