python-pyserial: add python3.4 version

This commit is contained in:
Alessio Sergi 2016-02-23 12:24:26 +01:00
parent 4fc250832e
commit a668532740
2 changed files with 26 additions and 11 deletions

View file

@ -1,22 +1,36 @@
# Template file for 'python-pyserial'
# vim: set ts=4 sw=4 sts=4 et:
pkgname=python-pyserial
version=3.0.1
revision=1
maintainer="Carlo Dormeletti <carloDOTdormelettiATaliceDOTit>"
homepage="https://github.com/pyserial/pyserial"
license="3-clause-BSD"
short_desc="Python2 module providing access for the serial port"
revision=2
noarch=yes
wrksrc="pyserial-${version}"
build_style=python-module
hostmakedepends="python-setuptools"
python_versions="2.7 3.4"
hostmakedepends="python-setuptools python3.4-setuptools"
depends="python"
pycompile_module="serial"
distfiles="https://github.com/pyserial/pyserial/archive/v${version}.tar.gz"
checksum=f99c338cd421348ca91f4e7dcb01d3c15d4e6e85b63d793b46d5ba4c826b7ba1
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() {
vlicense LICENSE.txt
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
}
}

1
srcpkgs/python3.4-pyserial Symbolic link
View file

@ -0,0 +1 @@
python-pyserial