void-packages/srcpkgs/python-pystache/template

39 lines
1008 B
Bash
Raw Normal View History

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