diff --git a/srcpkgs/python-pyserial/template b/srcpkgs/python-pyserial/template index 235ad01c9cd..198d118b255 100644 --- a/srcpkgs/python-pyserial/template +++ b/srcpkgs/python-pyserial/template @@ -2,30 +2,18 @@ pkgname=python-pyserial version=3.4 revision=7 -build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" +build_style=python2-module +hostmakedepends="python-setuptools" depends="python" -pycompile_module="serial" short_desc="Python2 module providing access for the serial port" maintainer="Orphaned " +license="BSD-3-Clause" homepage="https://github.com/pyserial/pyserial" -license="3-clause-BSD" distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz" checksum=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627 alternatives="pyserial:miniterm:/usr/bin/miniterm.py2" post_install() { + mv ${DESTDIR}/usr/bin/miniterm.py{,2} vlicense LICENSE.txt LICENSE } - -python3-pyserial_package() { - depends="python3" - pycompile_module="serial" - 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 - } -} diff --git a/srcpkgs/python3-pyserial b/srcpkgs/python3-pyserial deleted file mode 120000 index b32b82bb966..00000000000 --- a/srcpkgs/python3-pyserial +++ /dev/null @@ -1 +0,0 @@ -python-pyserial \ No newline at end of file diff --git a/srcpkgs/python3-pyserial/template b/srcpkgs/python3-pyserial/template new file mode 100644 index 00000000000..d90fedaba5a --- /dev/null +++ b/srcpkgs/python3-pyserial/template @@ -0,0 +1,20 @@ +# Template file for 'python3-pyserial' +pkgname=python3-pyserial +version=3.4 +revision=7 +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3" +checkdepends="python3-pytest" +short_desc="Python3 module providing access for the serial port" +maintainer="Orphaned " +license="BSD-3-Clause" +homepage="https://github.com/pyserial/pyserial" +distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz" +checksum=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627 +alternatives="pyserial:miniterm:/usr/bin/miniterm.py3" + +post_install() { + mv ${DESTDIR}/usr/bin/miniterm.py{,3} + vlicense LICENSE.txt LICENSE +}