desktop/python-ptyprocess/PKGBUILD
AlmAck 08a66c4024 python3 rebuild for 3.5
new pkg added to fullfill checkdepends
new order file python3.order
2016-03-16 22:36:13 +01:00

34 lines
1.2 KiB
Bash

pkgbase=python-ptyprocess
pkgname=('python3-ptyprocess' 'python2-ptyprocess')
_pkgname=ptyprocess
pkgver=0.5
pkgrel=2
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"
}