python3-jupyter_console: drop alternatives

This commit is contained in:
Đoàn Trần Công Danh 2020-03-31 12:14:39 +07:00 committed by Piotr
parent f596326c6f
commit 5f661431aa

View file

@ -1,11 +1,10 @@
# Template file for 'python3-jupyter_console'
pkgname=python3-jupyter_console
version=6.0.0
revision=2
revision=3
archs=noarch
wrksrc="jupyter_console-${version}"
build_style=python3-module
pycompile_module="jupyter_console"
hostmakedepends="python3-setuptools"
depends="python3-ipython python3-ipython_ipykernel python3-jupyter_client
python3-prompt_toolkit2 python3-Pygments"
@ -15,10 +14,9 @@ license="BSD-3-Clause"
homepage="https://github.com/jupyter/jupyter_console"
distfiles="${PYPI_SITE}/j/jupyter_console/jupyter_console-${version}.tar.gz"
checksum=308ce876354924fb6c540b41d5d6d08acfc946984bf0c97777c1ddcb42e0b2f5
alternatives="jupyter-console:jupyter-console:/usr/bin/jupyter-console3"
# alternatives will be a conflict
conflicts="python-jupyter_console<=6.0.0_2"
post_install() {
# create versioned script for alternatives
mv ${DESTDIR}/usr/bin/jupyter-console{,3}
vlicense COPYING.md LICENSE
}