python-pystache: fix template
This commit is contained in:
parent
60eb2fb521
commit
9079bdcbfa
1 changed files with 14 additions and 3 deletions
|
@ -1,27 +1,38 @@
|
||||||
# Template file for 'python-pystache'
|
# Template file for 'python-pystache'
|
||||||
pkgname=python-pystache
|
pkgname=python-pystache
|
||||||
version=0.5.4
|
version=0.5.4
|
||||||
revision=1
|
revision=2
|
||||||
noarch=yes
|
noarch=yes
|
||||||
wrksrc="pystache-${version}"
|
wrksrc="pystache-${version}"
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
pycompile_module="pystache"
|
pycompile_module="pystache"
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools python3-setuptools"
|
||||||
short_desc="Mustache template engine written in python"
|
depends="python-setuptools"
|
||||||
|
short_desc="Python2 implementation of Mustache"
|
||||||
maintainer="John <johnz@posteo.net>"
|
maintainer="John <johnz@posteo.net>"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
homepage="http://defunkt.io/pystache/"
|
homepage="https://github.com/defunkt/pystache"
|
||||||
distfiles="${PYPI_SITE}/p/pystache/pystache-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pystache/pystache-${version}.tar.gz"
|
||||||
checksum=f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a
|
checksum=f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a
|
||||||
|
alternatives="pystache:pystache:/usr/bin/pystache2"
|
||||||
|
|
||||||
|
pre_build() {
|
||||||
|
# no pystache-test entry point
|
||||||
|
sed -i '/pystache-test/d' setup.py
|
||||||
|
}
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
python3-pystache_package() {
|
python3-pystache_package() {
|
||||||
|
noarch=yes
|
||||||
pycompile_module="pystache"
|
pycompile_module="pystache"
|
||||||
|
depends="python3-setuptools"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
alternatives="pystache:pystache:/usr/bin/pystache2"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove "usr/lib/python3*"
|
vmove "usr/lib/python3*"
|
||||||
vmove "usr/bin/*3"
|
vmove "usr/bin/*3"
|
||||||
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue