aboutsummaryrefslogtreecommitdiffstats
path: root/community/py3-serial/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/py3-serial/APKBUILD')
-rw-r--r--community/py3-serial/APKBUILD60
1 files changed, 0 insertions, 60 deletions
diff --git a/community/py3-serial/APKBUILD b/community/py3-serial/APKBUILD
deleted file mode 100644
index 672c1101ab9..00000000000
--- a/community/py3-serial/APKBUILD
+++ /dev/null
@@ -1,60 +0,0 @@
-# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
-# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
-pkgname=py3-serial
-_pkgname=pyserial
-pkgver=3.5
-pkgrel=0
-pkgdesc="Python Serial Port Extension"
-options="!check" # testsuite not ready for py3
-url="https://github.com/pyserial/pyserial"
-arch="noarch"
-license="BSD-3-Clause"
-depends="python3"
-makedepends="py3-setuptools"
-subpackages="$pkgname-doc $pkgname-examples"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
-builddir="$srcdir"/$_pkgname-$pkgver
-
-replaces="py-serial" # Backwards compatibility
-provides="py-serial=$pkgver-r$pkgrel" # Backwards compatibility
-
-build() {
- python3 setup.py build
-}
-
-check() {
- python3 setup.py test
-}
-
-package() {
- python3 setup.py install --prefix=/usr --root="$pkgdir"
-}
-
-doc() {
- cd "$builddir"
- mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/
- # Documentation files
- _docs="appendix.rst examples.rst index.rst pyserial.rst \
- pyserial_api.rst shortintro.rst tools.rst url_handlers.rst"
- for _doc in $_docs; do
- mv "$srcdir"/$_pkgname-$pkgver/documentation/$_doc \
- "$subpkgdir"/usr/share/doc/$pkgname/$_doc
- done
-}
-
-examples() {
- cd "$builddir"
- mkdir -p "$subpkgdir"/usr/share/doc/$pkgname/examples
- # Example files
- _examples="port_publisher.sh rfc2217_server.py tcp_serial_redirect.py\
- wxSerialConfigDialog.py wxTerminal.py port_publisher.py\
- at_protocol.py setup-miniterm-py2exe.py\
- setup-rfc2217_server-py2exe.py setup-wxTerminal-py2exe.py\
- wxSerialConfigDialog.wxg wxTerminal.wxg"
- for _example in $_examples; do
- mv "$srcdir"/$_pkgname-$pkgver/examples/$_example \
- "$subpkgdir"/usr/share/doc/$pkgname/examples/$_example
- done
-}
-
-sha512sums="c8df5e50d952d5a6dcf1d9253a6ba953e9763c545a867da66c22c90dfa015aba0194f2a8f29a229d0a5f4dc8bfeeaaab8bcfda4066ed78a18b151bc05e6ae327 pyserial-3.5.tar.gz"