updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / libssh2-git / PKGBUILD
blob2f1f74def1e17b9ffac82402fbde6cf1a7a4c76f
1 # Archlive <http://archlive-pkg.googlecode.com>
3 pkgname=libssh2-git
4 pkgver=20091023
5 pkgrel=1
6 pkgdesc="A library implementing the SSH2 protocol as defined by Internet Drafts"
7 url="http://www.libssh2.org/"
8 arch=('i686' 'x86_64')
9 license=('BSD')
10 depends=('openssl')
11 makedepends=('zlib')
12 provides=(libssh2 libssh2=1.2.2)
13 conflicts=(libssh2)
14 options=('!libtool')
15 source=('FindLibSSH2.cmake')
17 _gitroot='git://git.libssh2.org/libssh2.git'
18 _gitname='libssh2'
20 build() {
22   cd $startdir
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."
29   else
30       git clone $_gitroot $_gitname
31   fi
33   [ -d $srcdir/$_gitname-build ] && rm -rf $srcdir/$_gitname-build
34   git clone $startdir/$_gitname $srcdir/$_gitname-build
36   cd $srcdir/$_gitname-build
37   ./buildconf
38   ./configure --prefix=/usr || return 1
39   make || return 1
40   make DESTDIR=${pkgdir} install || return 1
41   
42   install -Dm644 ${srcdir}/FindLibSSH2.cmake \
43     ${pkgdir}/usr/share/cmake-2.6/Modules/FindLibSSH2.cmake