From 3b518810aac48a9d50a867154c65c1dc04ee72fc Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 12 Apr 2018 19:38:47 +0000 Subject: python-ptyprocess: dep of python-pexpect --- abs/core/python_modules/python-ptyprocess/PKGBUILD | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 abs/core/python_modules/python-ptyprocess/PKGBUILD diff --git a/abs/core/python_modules/python-ptyprocess/PKGBUILD b/abs/core/python_modules/python-ptyprocess/PKGBUILD new file mode 100644 index 0000000..12092d4 --- /dev/null +++ b/abs/core/python_modules/python-ptyprocess/PKGBUILD @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Kyle Keen +# Contributor: Will Shanks + +pkgbase=python-ptyprocess +pkgname=(python-ptyprocess python2-ptyprocess) +_pkgname=ptyprocess +pkgver=0.5.2 +pkgrel=1 +pkgdesc="Run a subprocess in a pseudo terminal" +url="https://github.com/pexpect/ptyprocess" +arch=('any') +license=('ISC') +depends=('python') +makedepends=('python-setuptools' 'python2-setuptools') +source=("https://pypi.io/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz" + 'https://raw.githubusercontent.com/pexpect/ptyprocess/master/LICENSE') +md5sums=('d3b8febae1b8c53b054bd818d0bb8665' + 'cfdcd51fa7d5808da4e74346ee394490') + +prepare() { + cd "$srcdir" + cp -r $_pkgname-$pkgver ${_pkgname}2-$pkgver +} + +package_python-ptyprocess() { + cd "$srcdir/$_pkgname-$pkgver" + python3 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0 + install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/python-$_pkgname/LICENSE" +} + +package_python2-ptyprocess() { + depends=('python2') + cd "$srcdir/${_pkgname}2-$pkgver" + python2 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0 + install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/python2-$_pkgname/LICENSE" +} + -- cgit v0.12