python-hoedown: use alternatives
This commit is contained in:
parent
27de4b8ee6
commit
f594fb4f08
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'python-hoedown'
|
||||
pkgname=python-hoedown
|
||||
version=0.2.2
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="hoedown-$version"
|
||||
build_style=python-module
|
||||
python_versions="2.7 3.4"
|
||||
|
@ -13,17 +13,13 @@ homepage="https://github.com/hhatto/python-hoedown"
|
|||
license="MIT"
|
||||
distfiles="${PYPI_SITE}/h/hoedown/hoedown-${version}.tar.gz"
|
||||
checksum=caba2b393cf101a22a7090b1eadd5a199905c166a19f53b90c6bcd2a93f867fe
|
||||
|
||||
post_install() {
|
||||
rm -f ${DESTDIR}/usr/bin/hoedownpy
|
||||
vbin build-2.7/scripts-2.7/hoedownpy
|
||||
vbin build-3.4/scripts-3.4/hoedownpy hoedownpy3.4
|
||||
}
|
||||
alternatives="hoedown:hoedownpy:/usr/bin/hoedownpy2.7"
|
||||
|
||||
python3.4-hoedown_package() {
|
||||
short_desc="${short_desc/Python2/Python3.4}"
|
||||
alternatives="hoedown:hoedownpy:/usr/bin/hoedownpy3.4"
|
||||
pkg_install() {
|
||||
vmove /usr/bin/hoedownpy3.4
|
||||
vmove /usr/lib/python3.4
|
||||
vmove usr/bin/hoedownpy3.4
|
||||
vmove usr/lib/python3.4
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue