updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libssh-git / PKGBUILD
blobf0ebd2581c98c02ab5e48c2ae685906c2653c064
1 # Maintainer: 458italia <svenskaparadox@gmail.com>
2 # Contributor: vti <viacheslav.t AT gmail.com>
3 pkgname=libssh-git
4 pkgver=20110709
5 pkgrel=1
6 pkgdesc="Library for accessing ssh client services through C libraries"
7 license=('LGPL')
8 arch=('i686' 'x86_64')
9 depends=('openssl' 'zlib')
10 makedepends=('cmake' 'git')
11 source=()
12 url="http://www.libssh.org/"
13 md5sums=()
14 _gitroot='git://git.libssh.org/projects/libssh.git'
15 _gitname='libssh'
17 build() {
18   cd $startdir/src
20   msg "Connecting to git.libssh.org GIT server...."
22   if [ -d $startdir/src/$_gitname ] ; then
23       cd $_gitname && git pull origin
24       msg "The local files are updated."
25   else
26       git clone $_gitroot
27       cd $_gitname
28   fi
30   #git apply $startdir/channel-wait-eof.patch
32   # Build dir...
33   mkdir -p build
34   cd build
36   # Generate Makefile, compile, and install
37   cmake -DCMAKE_INSTALL_PREFIX=$pkgdir/usr \
38         -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
39         -DWITH_LIBZ=ON \
40         -DWITH_SSH1=ON \
41         -DWITH_SFTP=ON \
42         -DWITH_SERVER=ON \
43         -DWITH_STATIC_LIB=ON .. || return 1 
44   make
45   make install || return 1