[arch-commits] Commit in python-pexpect/repos (2 files)
Felix Yan
fyan at archlinux.org
Sat Sep 19 11:18:57 UTC 2015
Date: Saturday, September 19, 2015 @ 13:18:57
Author: fyan
Revision: 140752
archrelease: copy trunk to community-staging-any
Added:
python-pexpect/repos/community-staging-any/
python-pexpect/repos/community-staging-any/PKGBUILD
(from rev 140751, python-pexpect/trunk/PKGBUILD)
----------+
PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
Copied: python-pexpect/repos/community-staging-any/PKGBUILD (from rev 140751, python-pexpect/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2015-09-19 11:18:57 UTC (rev 140752)
@@ -0,0 +1,38 @@
+# $Id$
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Aaron Schaefer <aaron at elasticdog.com>
+
+pkgname=('python-pexpect' 'python2-pexpect')
+pkgver=3.3
+pkgrel=2
+pkgdesc='Make Python a better tool for controlling and automating other programs'
+arch=('any')
+url='http://pexpect.readthedocs.org/en/latest/'
+license=('MIT')
+makedepends=('python' 'python2')
+conflicts=('python-pexpect<=2.4')
+replaces=('python-pexpect<=2.4')
+source=("http://pypi.python.org/packages/source/p/pexpect/pexpect-$pkgver.tar.gz")
+sha256sums=('dfea618d43e83cfff21504f18f98019ba520f330e4142e5185ef7c73527de5ba')
+
+prepare() {
+ cp -r "pexpect-$pkgver" "python2-pexpect-$pkgver"
+ sed -i 's:env python:env python2:' "python2-pexpect-$pkgver/pexpect/FSM.py"
+}
+
+package_python-pexpect() {
+ depends+=('python')
+ cd "pexpect-$pkgver"
+ python setup.py install --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+
+package_python2-pexpect() {
+ depends+=('python2')
+ cd "python2-pexpect-$pkgver"
+ python2 setup.py install --root="$pkgdir"
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list