35 lines
994 B
Bash
35 lines
994 B
Bash
# Template file for 'python-pycodestyle'
|
|
pkgname=python-pycodestyle
|
|
version=2.4.0
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="pycodestyle-${version}"
|
|
build_style=python-module
|
|
pycompile_module="pycodestyle.py"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
short_desc="Python2 style guide checker (formerly called pep8)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
homepage="https://github.com/PyCQA/pycodestyle"
|
|
license="MIT"
|
|
distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz"
|
|
checksum=cbfca99bd594a10f674d0cd97a3d802a1fdef635d4361e1a2658de47ed261e3a
|
|
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-pycodestyle_package() {
|
|
noarch=yes
|
|
pycompile_module="pycodestyle.py"
|
|
depends="python3-setuptools"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle3"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|