summaryrefslogtreecommitdiffstats
path: root/abs/core/python_modules
diff options
context:
space:
mode:
authorBritney Fransen <brfransen@gmail.com>2018-04-12 19:38:47 (GMT)
committerBritney Fransen <brfransen@gmail.com>2018-04-12 19:38:47 (GMT)
commit3b518810aac48a9d50a867154c65c1dc04ee72fc (patch)
treec892719c76f6e1d343e085be0d4354b328e1b90b /abs/core/python_modules
parent72acd330b8c9160aa817054290f49bf4dfd4d491 (diff)
downloadlinhes_pkgbuild-3b518810aac48a9d50a867154c65c1dc04ee72fc.zip
linhes_pkgbuild-3b518810aac48a9d50a867154c65c1dc04ee72fc.tar.gz
linhes_pkgbuild-3b518810aac48a9d50a867154c65c1dc04ee72fc.tar.bz2
python-ptyprocess: dep of python-pexpect
Diffstat (limited to 'abs/core/python_modules')
-rw-r--r--abs/core/python_modules/python-ptyprocess/PKGBUILD38
1 files changed, 38 insertions, 0 deletions
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 <keenerd@gmail.com>
+# Contributor: Will Shanks <wsha dot code at g mail dot com>
+
+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"
+}
+