python-pyserial: split python3-pyserial

This commit is contained in:
Michal Vasilek 2023-06-17 20:32:55 +02:00
parent 7f93984232
commit 971865ea68
3 changed files with 24 additions and 17 deletions

View File

@ -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 <orphan@voidlinux.org>"
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
}
}

View File

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

View File

@ -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 <orphan@voidlinux.org>"
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
}