217e7d31f2
After more than a year the switch to python3 packages, it is time to say them goodbye. So long, and thanks for all the fish.
36 lines
1.1 KiB
Bash
36 lines
1.1 KiB
Bash
# Template file for 'python-pycodestyle'
|
|
pkgname=python-pycodestyle
|
|
version=2.3.1
|
|
revision=2
|
|
noarch=yes
|
|
replaces="pycodestyle>=0"
|
|
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=682256a5b318149ca0d2a9185d365d8864a768a28db66a84a2ea946bcc426766
|
|
alternatives="pycodestyle:pycodestyle:/usr/bin/pycodestyle2"
|
|
|
|
post_install() {
|
|
sed -n '/Copyright/,/SOFTWARE\./p' pycodestyle.py >LICENSE
|
|
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
|
|
}
|
|
}
|