# Template file for 'python-pyserial'
pkgname=python-pyserial
version=3.4
revision=7
build_style=python2-module
hostmakedepends="python-setuptools"
depends="python"
short_desc="Python2 module providing access for the serial port"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/pyserial/pyserial"
distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
checksum=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
alternatives="pyserial:miniterm:/usr/bin/miniterm.py2"

post_install() {
	mv ${DESTDIR}/usr/bin/miniterm.py{,2}
	vlicense LICENSE.txt LICENSE
}
