void-packages/srcpkgs/python-pyserial/template
2020-10-10 10:22:20 -04:00

32 lines
944 B
Bash

# Template file for 'python-pyserial'
pkgname=python-pyserial
version=3.4
revision=5
wrksrc="pyserial-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
pycompile_module="serial"
short_desc="Python2 module providing access for the serial port"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="https://github.com/pyserial/pyserial"
license="3-clause-BSD"
distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
checksum=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
alternatives="pyserial:miniterm:/usr/bin/miniterm.py2"
post_install() {
vlicense LICENSE.txt LICENSE
}
python3-pyserial_package() {
depends="python3"
pycompile_module="serial"
short_desc="${short_desc/Python2/Python3}"
alternatives="pyserial:miniterm:/usr/bin/miniterm.py3"
pkg_install() {
vmove usr/bin/miniterm.py3
vmove usr/lib/python3*
vlicense LICENSE.txt LICENSE
}
}