diff --git a/srcpkgs/python-pyserial/template b/srcpkgs/python-pyserial/template index b8f6d385278..aa802685401 100644 --- a/srcpkgs/python-pyserial/template +++ b/srcpkgs/python-pyserial/template @@ -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 " -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 " +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 + } } diff --git a/srcpkgs/python3.4-pyserial b/srcpkgs/python3.4-pyserial new file mode 120000 index 00000000000..b32b82bb966 --- /dev/null +++ b/srcpkgs/python3.4-pyserial @@ -0,0 +1 @@ +python-pyserial \ No newline at end of file