desktop/python-ptyprocess/PKGBUILD
2017-10-31 23:04:26 +01:00

34 lines
1.2 KiB
Bash

pkgbase=python-ptyprocess
pkgname=('python3-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=('python3')
makedepends=('python3-setuptools' 'python2-setuptools')
source=("https://pypi.io/packages/source/p/$_pkgname/$_pkgname-$pkgver.tar.gz"
'https://raw.githubusercontent.com/pexpect/ptyprocess/master/LICENSE')
sha256sums=('e64193f0047ad603b71f202332ab5527c5e52aa7c8b609704fc28c0dc20c4365'
'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"
}