void-packages/srcpkgs/python3-pystache/template

25 lines
715 B
Bash

# Template file for 'python3-pystache'
pkgname=python3-pystache
version=0.5.4
revision=7
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools"
short_desc="Python3 implementation of Mustache"
maintainer="John <me@johnnynator.dev>"
license="MIT"
homepage="https://github.com/defunkt/pystache"
distfiles="${PYPI_SITE}/p/pystache/pystache-${version}.tar.gz"
checksum=f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a
do_build() {
# Convert py2 syntax to py3 since setuptools no longer does it
2to3-${py3_ver} -w pystache
python3 setup.py build --build-base=build-${py3_ver}
}
post_install() {
vlicense LICENSE
ln -s pystache "${DESTDIR}/usr/bin/pystache3"
}