40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# Template file for 'pyflakes'
|
|
pkgname=pyflakes
|
|
version=1.3.0
|
|
revision=2
|
|
noarch=yes
|
|
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=a4f93317c97a9d9ed71d6ecfe08b68e3de9fea3f4d94dcd1d9d83ccbf929bc31
|
|
alternatives="pyflakes:pyflakes:/usr/bin/pyflakes2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-pyflakes_package() {
|
|
noarch=yes
|
|
pycompile_module="pyflakes"
|
|
replaces="python3.4-pyflakes>=0"
|
|
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
|
|
}
|
|
}
|
|
python3.4-pyflakes_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-pyflakes>=${version}_${revision}"
|
|
}
|