python-pyserial: use alternatives

This commit is contained in:
Alessio Sergi 2016-05-01 01:44:55 +02:00
parent 77cc4435ac
commit 28c1e132a3
1 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,9 @@ homepage="https://github.com/pyserial/pyserial"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
checksum=969cb6405d1d87f8960cf9c10f597ae58f85da2fb9769dba96f4aeeaade54656
alternatives="pyserial:miniterm:/usr/bin/miniterm.py2.7"
post_install() {
mv ${DESTDIR}/usr/bin/miniterm{.py,}
vbin build-3.4/scripts-3.4/miniterm.py miniterm3.4
vlicense LICENSE.txt LICENSE
}
@ -28,8 +27,9 @@ python3.4-pyserial_package() {
pycompile_version="3.4"
pycompile_module="serial"
short_desc="${short_desc/Python2/Python3.4}"
alternatives="pyserial:miniterm:/usr/bin/miniterm.py3.4"
pkg_install() {
vmove usr/bin/miniterm3.4
vmove usr/bin/miniterm.py3.4
vmove usr/lib/python3.4
vlicense LICENSE.txt LICENSE
}