diff --git a/srcpkgs/python-pyserial/template b/srcpkgs/python-pyserial/template index cc0f31417fd..ab50315d2fd 100644 --- a/srcpkgs/python-pyserial/template +++ b/srcpkgs/python-pyserial/template @@ -1,12 +1,11 @@ # Template file for 'python-pyserial' pkgname=python-pyserial version=3.1.1 -revision=1 +revision=2 noarch=yes wrksrc="pyserial-${version}" build_style=python-module -python_versions="2.7 3.4" -hostmakedepends="python-setuptools python3.4-setuptools" +hostmakedepends="python-setuptools python3-setuptools" depends="python" pycompile_module="serial" short_desc="Python2 module providing access for the serial port" @@ -15,22 +14,28 @@ homepage="https://github.com/pyserial/pyserial" license="3-clause-BSD" distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz" checksum=d657051249ce3cbd0446bcfb2be07a435e1029da4d63f53ed9b4cdde7373364c -alternatives="pyserial:miniterm:/usr/bin/miniterm.py2.7" +alternatives="pyserial:miniterm:/usr/bin/miniterm.py2" post_install() { vlicense LICENSE.txt LICENSE } -python3.4-pyserial_package() { +python3-pyserial_package() { noarch=yes - depends="python3.4" - pycompile_version="3.4" + depends="python3" pycompile_module="serial" - short_desc="${short_desc/Python2/Python3.4}" - alternatives="pyserial:miniterm:/usr/bin/miniterm.py3.4" + 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.4 - vmove usr/lib/python3.4 + 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}" +} diff --git a/srcpkgs/python3-pyserial b/srcpkgs/python3-pyserial new file mode 120000 index 00000000000..b32b82bb966 --- /dev/null +++ b/srcpkgs/python3-pyserial @@ -0,0 +1 @@ +python-pyserial \ No newline at end of file