[arch-commits] Commit in python-pyserial/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Sep 19 16:40:15 UTC 2015


    Date: Saturday, September 19, 2015 @ 18:40:15
  Author: foutrelis
Revision: 140968

archrelease: copy trunk to community-staging-any

Added:
  python-pyserial/repos/community-staging-any/
  python-pyserial/repos/community-staging-any/PKGBUILD
    (from rev 140967, python-pyserial/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: python-pyserial/repos/community-staging-any/PKGBUILD (from rev 140967, python-pyserial/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2015-09-19 16:40:15 UTC (rev 140968)
@@ -0,0 +1,37 @@
+# $Id$
+# 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=2.7
+pkgrel=5
+pkgdesc="Multiplatform Serial Port Module for Python"
+arch=('any')
+url="http://pyserial.sf.net"
+license=('custom:PYTHON')
+makedepends=('python2' 'python')
+source=(http://pypi.python.org/packages/source/p/pyserial/pyserial-$pkgver.tar.gz)
+md5sums=('794506184df83ef2290de0d18803dd11')
+
+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