# Contributor: Peter Bui # Maintainer: Fabian Affolter pkgname=py3-pyflakes _pkgname=${pkgname#py3-} pkgver=2.1.1 pkgrel=5 pkgdesc="A passive checker of Python programs" url="https://github.com/pyflakes/pyflakes" arch="noarch" license="MIT" makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-pyflakes" # Backwards compatibility provides="py-pyflakes=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 setup.py test } package() { mkdir -p "$pkgdir"/usr/bin ln -s pyflakes "$pkgdir"/usr/bin/pyflakes-3 python3 setup.py --quiet install --prefix=/usr --root="$pkgdir" } sha512sums="7ebf5843b38146305c1063e070480fea8ec3b47fa1be546b1fafaeb242a688a5a001f978e7257fd71d5905b9a338b466ef17c7330725191587e9c40ba632c3f8 pyflakes-2.1.1.tar.gz"