# Template file for 'pyflakes'
pkgname=pyflakes
version=1.2.3
revision=2
noarch=yes
build_style=python-module
python_versions="2.7 3.4"
pycompile_module="pyflakes"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python-setuptools"
short_desc="Passive checker of Python programs (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
homepage="https://github.com/pyflakes/pyflakes"
license="MIT"
distfiles="${PYPI_SITE}/p/pyflakes/pyflakes-${version}.tar.gz"
checksum=2e4a1b636d8809d8f0a69f341acf15b2e401a3221ede11be439911d23ce2139e
alternatives="pyflakes:pyflakes:/usr/bin/pyflakes2.7"

post_install() {
	vlicense LICENSE
}

python3.4-pyflakes_package() {
	noarch=yes
	pycompile_version="3.4"
	pycompile_module="pyflakes"
	depends="python3.4-setuptools"
	short_desc="${short_desc/Python2/Python3.4}"
	alternatives="pyflakes:pyflakes:/usr/bin/pyflakes3.4"
	pkg_install() {
		vmove usr/bin/*3.4
		vmove usr/lib/python3.4
		vlicense LICENSE
	}
}
