36 lines
1.0 KiB
Bash
36 lines
1.0 KiB
Bash
# Template file for 'python-vint'
|
|
pkgname=python-vint
|
|
version=0.3.19
|
|
revision=2
|
|
archs=noarch
|
|
wrksrc="vim-vint-${version}"
|
|
build_style=python-module
|
|
pycompile_module="vint"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-ansicolor python-chardet python-enum34
|
|
python-pathlib python-yaml python-typing"
|
|
short_desc="Lint tool for Vim script language (Python2)"
|
|
maintainer="Joseph LaFreniere <joseph@lafreniere.xyz>"
|
|
license="MIT"
|
|
homepage="https://github.com/Kuniwak/vint"
|
|
distfiles="${PYPI_SITE}/v/vim-vint/vim-vint-${version}.tar.gz"
|
|
checksum=aba8938f4c720e5c70a25f4dc7d845c5ce87aba0b778d1686f18b8da0c88f234
|
|
alternatives="vint:vint:/usr/bin/vint2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt
|
|
}
|
|
|
|
python3-vint_package() {
|
|
archs=noarch
|
|
depends="python3-setuptools python3-ansicolor python3-chardet python3-yaml"
|
|
pycompile_module="vint"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="vint:vint:/usr/bin/vint3"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.txt
|
|
}
|
|
}
|