APKBUILD 969 Bytes
Newer Older
1 2
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
Leo's avatar
Leo committed
3 4
pkgname=py3-pyflakes
_pkgname=${pkgname#py3-}
5 6
pkgver=2.2.0
pkgrel=0
7 8 9 10
pkgdesc="A passive checker of Python programs"
url="https://github.com/pyflakes/pyflakes"
arch="noarch"
license="MIT"
11
depends="python3 py3-setuptools"
12
source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
13 14
builddir="$srcdir/$_pkgname-$pkgver"

Leo's avatar
Leo committed
15 16 17
replaces="py-pyflakes" # Backwards compatibility
provides="py-pyflakes=$pkgver-r$pkgrel" # Backwards compatibility

18 19 20 21
build() {
	python3 setup.py build
}

22 23 24 25
check() {
	python3 setup.py test
}

26 27
package() {
	mkdir -p "$pkgdir"/usr/bin
Leo's avatar
Leo committed
28
	ln -s pyflakes "$pkgdir"/usr/bin/pyflakes-3
29

Leo's avatar
Leo committed
30
	python3 setup.py --quiet install --prefix=/usr --root="$pkgdir"
31 32
}

33
sha512sums="6a411efef261874c216b71bcb095412448a8cbeefdf7fa5577d4f4edd48a4a740a4433665e87e5dda2c08fd9ee3bfb7f134f56c7523e1303243edfa92b0ccb35  pyflakes-2.2.0.tar.gz"