35 lines
1.0 KiB
Bash
35 lines
1.0 KiB
Bash
# Template file for 'python-yamllint'
|
|
pkgname=python-yamllint
|
|
version=1.12.1
|
|
revision=1
|
|
noarch=yes
|
|
wrksrc="yamllint-${version}"
|
|
build_style=python-module
|
|
pycompile_module="yamllint"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-pathspec python-setuptools python-yaml"
|
|
checkdepends="python3-pathspec python3-yaml"
|
|
short_desc="Python2 linter for YAML files"
|
|
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
|
|
homepage="https://github.com/adrienverge/yamllint"
|
|
license="GPL-3.0-or-later"
|
|
distfiles="${homepage}/archive/v${version}.tar.gz"
|
|
checksum=63549d4b34bab8dc6b44edb256faac23a21c8ea3644fa6400e7f846f86b50b62
|
|
alternatives="yamllint:yamllint:/usr/bin/yamllint2"
|
|
|
|
do_check() {
|
|
python3 setup.py test
|
|
}
|
|
|
|
python3-yamllint_package() {
|
|
noarch=yes
|
|
depends="python3-pathspec python3-setuptools python3-yaml"
|
|
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*
|
|
}
|
|
}
|