35 lines
918 B
Bash
35 lines
918 B
Bash
# Template file for 'python-kaptan'
|
|
pkgname=python-kaptan
|
|
version=0.5.11
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc="kaptan-${version}"
|
|
build_style=python-module
|
|
pycompile_module="kaptan"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python python-yaml"
|
|
short_desc="Configuration manager"
|
|
maintainer="Alexander Egorenkov <egorenar-dev@posteo.net>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/emre/kaptan"
|
|
distfiles="${PYPI_SITE}/k/kaptan/kaptan-${version}.tar.gz"
|
|
checksum=8403d6e48200c3f49cb6d6b3dcb5898aa5ab9d820831655bf9a2403e00cd4207
|
|
alternatives="kaptan:kaptan:/usr/bin/kaptan2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|
|
|
|
python3-kaptan_package() {
|
|
archs=noarch
|
|
pycompile_module="kaptan"
|
|
depends="python3 python3-yaml"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
alternatives="kaptan:kaptan:/usr/bin/kaptan3"
|
|
pkg_install() {
|
|
vmove usr/bin/kaptan3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE
|
|
}
|
|
}
|