python-pyserial: use alternatives
This commit is contained in:
parent
77cc4435ac
commit
28c1e132a3
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue