void-packages/srcpkgs/python-codespell/template

30 lines
945 B
Bash

# Template file for 'python-codespell'
pkgname=python-codespell
version=1.16.0
revision=2
archs=noarch
wrksrc="codespell-${version}"
build_style=python-module
pycompile_module="codespell_lib"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Checks code for common spelling mistakes (Python2)"
maintainer="Nathan <ndowens04@gmail.com>"
license="GPL-2.0-or-later"
homepage="https://github.com/codespell-project/codespell"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=53d22aefa1daf3365ca4625877271d23d143c0a92c16e55daf5cd14b6494b8f4
alternatives="python-codespell:codespell:/usr/bin/codespell2"
python3-codespell_package() {
archs=noarch
depends="python3-setuptools"
pycompile_module="codespell_lib"
short_desc="${short_desc/Python2/Python3}"
alternatives="python-codespell:codespell:/usr/bin/codespell3"
pkg_install() {
vmove "usr/lib/python3*"
vmove usr/bin/codespell3
}
}