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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 01:41:44 UTC 2018


    Date: Saturday, June 30, 2018 @ 01:41:43
  Author: felixonmars
Revision: 347816

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pexpect/repos/community-staging-any/PKGBUILD (from rev 347815, python-pexpect/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2018-06-30 01:41:43 UTC (rev 347816)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Alexander F Rødseth <xyproto at archlinux.org>
+# Contributor: Aaron Schaefer <aaron at elasticdog.com>
+
+pkgname=('python-pexpect' 'python2-pexpect')
+pkgver=4.6.0
+pkgrel=2
+pkgdesc='For controlling and automating applications'
+arch=('any')
+url='https://pexpect.readthedocs.org/en/stable/'
+license=('MIT')
+makedepends=('git' 'python' 'python2')
+source=("git+https://github.com/pexpect/pexpect#tag=${pkgver%%.0}")
+sha512sums=('SKIP')
+
+prepare() {
+  cp -r pexpect python2-pexpect
+  sed -i 's,env python,env python2,' python2-pexpect/pexpect/FSM.py
+}
+
+package_python-pexpect() {
+  depends+=('python' 'python-ptyprocess')
+
+  cd pexpect
+  python setup.py install --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+package_python2-pexpect() {
+  depends+=('python2' 'python2-ptyprocess')
+
+  cd python2-pexpect
+  python2 setup.py install --root="$pkgdir"
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim: ts=2 sw=2 et:
+# getver: pypi.python.org/pypi/pexpect



More information about the arch-commits mailing list