Commit 067d7e93 authored by gnastyle's avatar gnastyle

imported python-ptyprocess as new dep of ipython

parent 068d326b
pkgbase=python-ptyprocess
pkgname=('python3-ptyprocess' 'python2-ptyprocess')
_pkgname=ptyprocess
pkgver=0.5
pkgrel=1
pkgdesc="Run a subprocess in a pseudo terminal"
url="https://github.com/pexpect/ptyprocess"
arch=('any')
license=('ISC')
depends=('python3')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("https://pypi.python.org/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
'https://raw.githubusercontent.com/pexpect/ptyprocess/master/LICENSE')
sha256sums=('dcb78fb2197b49ca1b7b2f37b047bc89c0da7a90f90bd5bc17c3ce388bb6ef59'
'c822d385b1a73329846241799becf18690b5d44764c1bed69300b536a405030a')
prepare() {
cd "$srcdir"
cp -r $_pkgname-$pkgver ${_pkgname}2-$pkgver
}
package_python3-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"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment