void-packages/srcpkgs/pyflakes/template
2016-10-08 22:40:07 +02:00

35 lines
960 B
Bash

# Template file for 'pyflakes'
pkgname=pyflakes
version=1.3.0
revision=1
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/PyCQA/pyflakes"
license="MIT"
distfiles="${PYPI_SITE}/p/pyflakes/pyflakes-${version}.tar.gz"
checksum=a4f93317c97a9d9ed71d6ecfe08b68e3de9fea3f4d94dcd1d9d83ccbf929bc31
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
}
}