desktop/python-terminado/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

36 lines
1.3 KiB
Bash

pkgbase=python-terminado
pkgname=('python3-terminado' 'python2-terminado')
_pkgname=terminado
pkgver=0.6
pkgrel=1
pkgdesc="Terminals served to term.js using Tornado websockets"
url="https://github.com/takluyver/terminado"
arch=('any')
license=('BSD')
depends=('python3-tornado' 'python3-ptyprocess')
makedepends=('python3-setuptools' 'python2-setuptools'
'python3-tornado' 'python3-ptyprocess'
'python2-tornado' 'python2-ptyprocess')
source=("http://pypi.python.org/packages/source/t/$_pkgname/$_pkgname-$pkgver.tar.gz"
'https://raw.githubusercontent.com/takluyver/terminado/master/LICENSE.txt')
md5sums=('5b6c65da27fe1ed07a9f80f0588cdaba'
'242c3ea7df130edf77dc0e088ac1847c')
prepare() {
cd "$srcdir"
cp -r $_pkgname-$pkgver ${_pkgname}2-$pkgver
}
package_python3-terminado() {
cd "$srcdir/$_pkgname-$pkgver"
python3 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0
install -Dm644 "$srcdir/LICENSE.txt" "$pkgdir/usr/share/licenses/python-$_pkgname/LICENSE"
}
package_python2-terminado() {
depends=('python2-tornado' 'python2-ptyprocess')
cd "$srcdir/${_pkgname}2-$pkgver"
python2 setup.py install --root="$pkgdir/" --prefix=/usr --optimize=0
install -Dm644 "$srcdir/LICENSE.txt" "$pkgdir/usr/share/licenses/python2-$_pkgname/LICENSE"
}