42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
# Template file for 'python-pyserial'
|
|
pkgname=python-pyserial
|
|
version=3.3
|
|
revision=1
|
|
noarch=yes
|
|
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="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://github.com/pyserial/pyserial"
|
|
license="3-clause-BSD"
|
|
distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
|
|
checksum=2949cddffc2b05683065a3cd2345114b1a49b08df8cb843d69ba99dc3e19edc2
|
|
alternatives="pyserial:miniterm:/usr/bin/miniterm.py2"
|
|
|
|
post_install() {
|
|
vlicense LICENSE.txt LICENSE
|
|
}
|
|
|
|
python3-pyserial_package() {
|
|
noarch=yes
|
|
depends="python3"
|
|
pycompile_module="serial"
|
|
replaces="python3.4-pyserial>=0"
|
|
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
|
|
}
|
|
}
|
|
python3.4-pyserial_package() {
|
|
noarch=yes
|
|
build_style=meta
|
|
short_desc="${short_desc/Python2/Python3.4} (transitional dummy package)"
|
|
depends="python3-pyserial>=${version}_${revision}"
|
|
}
|