35 lines
937 B
Bash
35 lines
937 B
Bash
# Template file for 'python-pyflakes'
|
|
pkgname=python-pyflakes
|
|
version=2.0.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="pyflakes-${version}"
|
|
build_style=python-module
|
|
pycompile_module="pyflakes"
|
|
hostmakedepends="python-setuptools python3-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=9a7662ec724d0120012f6e29d6248ae3727d821bba522a0e6b356eff19126a49
|
|
alternatives="pyflakes:pyflakes:/usr/bin/pyflakes2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-pyflakes_package() {
|
|
noarch=yes
|
|
pycompile_module="pyflakes"
|
|
depends="python3-setuptools"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="pyflakes:pyflakes:/usr/bin/pyflakes3"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|