void-packages/srcpkgs/python-pyserial/template
2016-02-23 12:24:26 +01:00

36 lines
1,006 B
Bash

# Template file for 'python-pyserial'
pkgname=python-pyserial
version=3.0.1
revision=2
noarch=yes
wrksrc="pyserial-${version}"
build_style=python-module
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-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=969cb6405d1d87f8960cf9c10f597ae58f85da2fb9769dba96f4aeeaade54656
post_install() {
mv ${DESTDIR}/usr/bin/miniterm{.py,}
vbin build-3.4/scripts-3.4/miniterm.py miniterm3.4
vlicense LICENSE.txt LICENSE
}
python3.4-pyserial_package() {
noarch=yes
depends="python3.4"
pycompile_version="3.4"
pycompile_module="serial"
short_desc="${short_desc/Python2/Python3.4}"
pkg_install() {
vmove usr/bin/miniterm3.4
vmove usr/lib/python3.4
vlicense LICENSE.txt LICENSE
}
}