aboutsummaryrefslogtreecommitdiffstats
path: root/testing/pyflakes/APKBUILD
blob: dfa8e750eee69d6516c5ce7abe6c8322e9be15bb (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=pyflakes
pkgver=0.7.3
pkgrel=0
pkgdesc="A passive checker of Python programs"
url="https://launchpad.net/pyflakes"
arch="noarch"
license="MIT"
depends="python"
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="ec94ac11cb110e6e72cca23c104b66b1  pyflakes-0.7.3.tar.gz"
sha256sums="dbd2c940a1030a4f811afc1a04017a44011c0cb54f8f384b66aa624097d9b5e3  pyflakes-0.7.3.tar.gz"
sha512sums="a77fc6a1ca1bdb8aaf31e3653389c7c9357433b8b64dbd3104068a4ce900a019d3dbba5bd23c313fc70398f6f2767a3639cf7b915d3edbc1e1d1e1a03932729d  pyflakes-0.7.3.tar.gz"