mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
python-pyserial: split python3-pyserial
This commit is contained in:
parent
7f93984232
commit
971865ea68
3 changed files with 24 additions and 17 deletions
|
@ -2,30 +2,18 @@
|
||||||
pkgname=python-pyserial
|
pkgname=python-pyserial
|
||||||
version=3.4
|
version=3.4
|
||||||
revision=7
|
revision=7
|
||||||
build_style=python-module
|
build_style=python2-module
|
||||||
hostmakedepends="python-setuptools python3-setuptools"
|
hostmakedepends="python-setuptools"
|
||||||
depends="python"
|
depends="python"
|
||||||
pycompile_module="serial"
|
|
||||||
short_desc="Python2 module providing access for the serial port"
|
short_desc="Python2 module providing access for the serial port"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
|
license="BSD-3-Clause"
|
||||||
homepage="https://github.com/pyserial/pyserial"
|
homepage="https://github.com/pyserial/pyserial"
|
||||||
license="3-clause-BSD"
|
|
||||||
distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
|
||||||
checksum=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
|
checksum=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
|
||||||
alternatives="pyserial:miniterm:/usr/bin/miniterm.py2"
|
alternatives="pyserial:miniterm:/usr/bin/miniterm.py2"
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
|
mv ${DESTDIR}/usr/bin/miniterm.py{,2}
|
||||||
vlicense LICENSE.txt LICENSE
|
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
python-pyserial
|
|
20
srcpkgs/python3-pyserial/template
Normal file
20
srcpkgs/python3-pyserial/template
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue