updated on Wed Jan 25 12:16:47 UTC 2012
[aur-mirror.git] / python2-ssh4py / PKGBUILD
blobf0d25a5077a25d4243e0e3c77d37cefd520ee642
1 # Maintainer: Scott Garrett <wintervenom@gmail.com>
3 pkgname=python2-ssh4py
4 pkgver=20110827
5 pkgrel=2
6 pkgdesc="Python bindings for libssh2."
7 arch=('any')
8 url="https://github.com/wallunit/ssh4py"
9 license=('LGPL')
10 depends=('python2' '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     python2 setup.py build
30 package() {
31     cd "$srcdir/$_gitname"
32     python2 setup.py install --prefix "${pkgdir}/usr" --optimize=1