[arch-commits] Commit in python-pyserial/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Mon Nov 9 15:43:45 UTC 2020
Date: Monday, November 9, 2020 @ 15:43:44
Author: felixonmars
Revision: 747112
archrelease: copy trunk to community-staging-any
Added:
python-pyserial/repos/community-staging-any/
python-pyserial/repos/community-staging-any/PKGBUILD
(from rev 747111, python-pyserial/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: python-pyserial/repos/community-staging-any/PKGBUILD (from rev 747111, python-pyserial/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 15:43:44 UTC (rev 747112)
@@ -0,0 +1,36 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Maintainer: Douglas Soares de Andrade <dsandrade at gmail.com>
+# Contributor: Douglas Soares de Andrade <dsandrade at gmail.com>
+
+pkgbase=python-pyserial
+pkgname=('python-pyserial' 'python2-pyserial')
+pkgver=3.4
+pkgrel=5
+pkgdesc="Multiplatform Serial Port Module for Python"
+arch=('any')
+url="https://github.com/pyserial/pyserial"
+license=('custom:PYTHON')
+makedepends=('python2' 'python')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/pyserial/pyserial/archive/v$pkgver.tar.gz")
+sha256sums=('ca25c777d06ad0b4b129910642aaa75f724157c80e2898a8e3219adc5599a2a1')
+
+build() {
+ cp -a "$srcdir"/pyserial-${pkgver} "$srcdir"/py2serial-${pkgver}
+}
+
+package_python-pyserial() {
+ depends=('python')
+
+ cd "$srcdir"/pyserial-${pkgver}
+ python setup.py install --root="$pkgdir"
+ install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-pyserial() {
+ depends=('python2')
+
+ cd "$srcdir"/py2serial-${pkgver}
+ python2 setup.py install --root="$pkgdir"
+ install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+ mv "$pkgdir"/usr/bin/miniterm.py "$pkgdir"/usr/bin/miniterm2.py
+}
More information about the arch-commits
mailing list