summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules/python-pexpect/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/python_modules/python-pexpect/PKGBUILD')
-rw-r--r--abs/core/python_modules/python-pexpect/PKGBUILD27
1 files changed, 17 insertions, 10 deletions
diff --git a/abs/core/python_modules/python-pexpect/PKGBUILD b/abs/core/python_modules/python-pexpect/PKGBUILD
index 80874a1..09ddb51 100644
--- a/abs/core/python_modules/python-pexpect/PKGBUILD
+++ b/abs/core/python_modules/python-pexpect/PKGBUILD
@@ -1,17 +1,24 @@
-# Maintainer: Aaron Schaefer <aaron@elasticdog.com>
+# $Id: PKGBUILD 69520 2012-04-17 21:14:19Z ebelanger $
+# Maintainer:
+# Contributor: Aaron Schaefer <aaron@elasticdog.com>
+
pkgname=python-pexpect
-pkgver=2.3
-pkgrel=5
+pkgver=2.4
+pkgrel=1
pkgdesc='A pure Python Expect-like module'
-arch=('i686' 'x86_64')
+arch=('any')
url='http://pexpect.sourceforge.net/'
license=('MIT')
depends=('python2')
-source=("http://downloads.sourceforge.net/sourceforge/pexpect/pexpect-$pkgver.tar.gz")
-md5sums=('bf107cf54e67bc6dec5bea1f3e6a65c3')
+source=("http://pypi.python.org/packages/source/p/pexpect/pexpect-$pkgver.tar.gz")
+md5sums=('fe82d69be19ec96d3a6650af947d5665')
+
+package() {
+ cd "$srcdir/pexpect-$pkgver"
+
+ # python2 fix
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' FSM.py
-build() {
- cd $startdir/src/pexpect-$pkgver
- python2 setup.py install --root=$startdir/pkg || return 1
- install -D -m644 LICENSE $startdir/pkg/usr/share/licenses/$pkgname/LICENSE
+ python2 setup.py install --root="$pkgdir"
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}