python-jupyter_client: use alternatives

This commit is contained in:
Alessio Sergi 2016-05-29 23:21:50 +02:00
parent 8b791d3e4d
commit 4181d0c072
1 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python-jupyter_client'
pkgname=python-jupyter_client
version=4.2.2
revision=1
revision=2
noarch=yes
wrksrc="jupyter_client-${version}"
build_style=python-module
@ -15,9 +15,9 @@ homepage="https://github.com/jupyter/jupyter_client"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/j/jupyter_client/jupyter_client-${version}.tar.gz"
checksum=3ffc530eff0518fd9bfe3662423a2bec15d0628b9ca159921dd72f34ae004a14
alternatives="jupyter-client:jupyter-kernelspec:/usr/bin/jupyter-kernelspec2.7"
post_install() {
vbin build-3.4/scripts-3.4/jupyter-kernelspec jupyter-kernelspec3.4
vlicense COPYING.md LICENSE
}
@ -27,6 +27,7 @@ python3.4-jupyter_client_package() {
pycompile_version="3.4"
pycompile_module="jupyter_client"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="jupyter-client:jupyter-kernelspec:/usr/bin/jupyter-kernelspec3.4"
pkg_install() {
vmove usr/bin/jupyter-kernelspec3.4
vmove usr/lib/python3.4