1 # Archlive <http://archlive-pkg.googlecode.com>
6 pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts"
7 url="http://www.libssh2.org/"
12 provides=(libssh2 libssh2=1.2.2)
15 source=('FindLibSSH2.cmake')
17 _gitroot='git://git.libssh2.org/libssh2.git'
24 msg "Connecting to git.libssh.org GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 [ -d $srcdir/$_gitname-build ] && rm -rf $srcdir/$_gitname-build
34 git clone $startdir/$_gitname $srcdir/$_gitname-build
36 cd $srcdir/$_gitname-build
38 ./configure --prefix=/usr || return 1
40 make DESTDIR=${pkgdir} install || return 1
42 install -Dm644 ${srcdir}/FindLibSSH2.cmake \
43 ${pkgdir}/usr/share/cmake-2.6/Modules/FindLibSSH2.cmake