31 lines
902 B
Bash
31 lines
902 B
Bash
# Template file for 'python-pycodestyle'
|
|
pkgname=python-pycodestyle
|
|
version=2.6.0
|
|
revision=2
|
|
wrksrc="pycodestyle-${version}"
|
|
build_style=python-module
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools"
|
|
short_desc="Python2 style guide checker (formerly called pep8)"
|
|
maintainer="Alessio Sergi <al3hex@gmail.com>"
|
|
license="MIT"
|
|
homepage="https://github.com/PyCQA/pycodestyle"
|
|
distfiles="${PYPI_SITE}/p/pycodestyle/pycodestyle-${version}.tar.gz"
|
|
checksum=c58a7d2815e0e8d7972bf1803331fb0152f867bd89adf8a01dfd55085434192e
|
|
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-pycodestyle_package() {
|
|
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
|
|
}
|
|
}
|