aboutsummaryrefslogtreecommitdiffstats
path: root/main/pyflakes/APKBUILD
blob: d1937e78196e1344d4bf2547f483ca035d23d513 (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: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=pyflakes
pkgver=1.1.0
pkgrel=0
pkgdesc="A passive checker of Python programs"
url="https://github.com/pyflakes/pyflakes"
arch="noarch"
license="MIT"
depends="python2"
depends_dev=""
makedepends="python2-dev"
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"
	python2 setup.py build || return 1
}

package() {
	cd "$_builddir"
	python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="e0bf854cd5abd4527e149692925b82eb  pyflakes-1.1.0.tar.gz"
sha256sums="e5f959931987e2be178781554b485d52342ec9f1b43f891d2dad07a691c7a89a  pyflakes-1.1.0.tar.gz"
sha512sums="7348ad097af9d8f3af5aa272a2de639724b76aa2bfbda323c90d2a8cd7574ac768f0ff23c558ebb5a81c029b578ce152d8790fa322c4090defda53dad28cf9a3  pyflakes-1.1.0.tar.gz"