updated on Tue Jan 10 00:10:07 UTC 2012
[aur-mirror.git] / python-ssh4py / PKGBUILD
blob959fd1ea81361d6269055f1b28465894dde680f1
1 # Maintainer: Scott Garrett <wintervenom@gmail.com>
3 pkgname=python-ssh4py
4 pkgver=20110827
5 pkgrel=1
6 pkgdesc="Python 3 bindings for libssh2."
7 arch=('any')
8 url="https://github.com/wallunit/ssh4py"
9 license=('LGPL')
10 depends=('python' 'libssh2' 'zlib')
12 _gitroot='git://github.com/wallunit/ssh4py.git'
13 _gitname='ssh4py'
15 build() {
16     cd "$srcdir"
17     msg 'Connecting to GIT server...'
18     if [[ -d "$_gitname" ]]; then
19         cd "$_gitname" && git pull origin
20         msg 'The local files are updated.'
21     else
22         git clone "$_gitroot" "$_gitname"
23     fi
25     msg 'GIT checkout done or server timeout.'
26     cd "$srcdir/$_gitname"
27     python3 setup.py build
30 package() {
31     cd "$srcdir/$_gitname"
32     python3 setup.py install --prefix "${pkgdir}/usr" --optimize=1