30 lines
928 B
Bash
30 lines
928 B
Bash
# Template file for 'python-yamllint'
|
|
pkgname=python-yamllint
|
|
version=1.8.1
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="yamllint-${version}"
|
|
build_style=python-module
|
|
pycompile_module="yamllint"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-yaml python-pathspec"
|
|
short_desc="Python2 linter for YAML files"
|
|
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
|
|
homepage="https://github.com/adrienverge/yamllint"
|
|
license="GPL-3"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=39a2254f127ac7b8c20fd9c2ef67f35ac7d125744b90613297fd938ee1fdce21
|
|
alternatives="yamllint:yamllint:/usr/bin/yamllint2"
|
|
|
|
python3-yamllint_package() {
|
|
noarch=yes
|
|
depends="python3-setuptools python3-yaml python3-pathspec"
|
|
pycompile_module="yamllint"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="yamllint:yamllint:/usr/bin/yamllint3"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
}
|
|
}
|