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

Felix Yan felixonmars at archlinux.org
Fri Oct 25 19:54:14 UTC 2019


    Date: Friday, October 25, 2019 @ 19:54:14
  Author: felixonmars
Revision: 519616

archrelease: copy trunk to community-staging-any

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

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

Copied: python-pexpect/repos/community-staging-any/PKGBUILD (from rev 519614, python-pexpect/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-10-25 19:54:14 UTC (rev 519616)
@@ -0,0 +1,37 @@
+# Maintainer: Alexander F. Rødseth <xyproto at archlinux.org>
+# Contributor: Aaron Schaefer <aaron at elasticdog.com>
+
+pkgname=(python-pexpect python2-pexpect)
+pkgver=4.7.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")
+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"
+}
+
+# getver: pypi.python.org/pypi/pexpect
+# vim: ts=2 sw=2 et:



More information about the arch-commits mailing list