summaryrefslogtreecommitdiff
path: root/community/python-pexpect/PKGBUILD
blob: 323c6d536891c873093c56c33ee402f2382c9d9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Maintainer: Aaron Schaefer <aaron@elasticdog.com>
pkgname=python-pexpect
pkgver=2.3
pkgrel=4
pkgdesc='A pure Python Expect-like module'
arch=('i686' 'x86_64')
url='http://pexpect.sourceforge.net/'
license=('MIT')
depends=('python2')
source=("http://downloads.sourceforge.net/sourceforge/pexpect/pexpect-$pkgver.tar.gz")
md5sums=('bf107cf54e67bc6dec5bea1f3e6a65c3')

build() {
  cd $srcdir/pexpect-$pkgver

  # python2 fix
  sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' FSM.py

  python2 setup.py install --root=$pkgdir
  install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}