void-packages/srcpkgs/python-pystache/template

39 lines
1012 B
Bash

# Template file for 'python-pystache'
pkgname=python-pystache
version=0.5.4
revision=2
archs=noarch
wrksrc="pystache-${version}"
build_style=python-module
pycompile_module="pystache"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-setuptools"
short_desc="Python2 implementation of Mustache"
maintainer="John <johnz@posteo.net>"
license="MIT"
homepage="https://github.com/defunkt/pystache"
distfiles="${PYPI_SITE}/p/pystache/pystache-${version}.tar.gz"
checksum=f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a
alternatives="pystache:pystache:/usr/bin/pystache2"
pre_build() {
# no pystache-test entry point
sed -i '/pystache-test/d' setup.py
}
post_install() {
vlicense LICENSE
}
python3-pystache_package() {
archs=noarch
pycompile_module="pystache"
depends="python3-setuptools"
short_desc="${short_desc/Python2/Python3}"
alternatives="pystache:pystache:/usr/bin/pystache2"
pkg_install() {
vmove "usr/lib/python3*"
vmove "usr/bin/*3"
vlicense LICENSE
}
}