1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
2 # Contributor: heaven <vo.zaeb at gmail.com>
3 # Contributor: Patrick Schwalm <patrick.schwalm@googlemail.com>
8 pkgdesc='ANSI C library that does allow communication with google calendar and contacts - Git Version'
9 url='http://code.google.com/p/libgcal/'
10 arch=('i686' 'x86_64')
13 depends=('libxml2' 'curl')
14 makedepends=('git' 'cmake')
22 _gitroot='git://gitorious.org/libgcal/libgcal.git'
27 msg "Connecting to GIT server...."
29 if [[ -d "$_gitname" ]]; then
30 cd "$_gitname" && git pull origin
31 msg "The local files are updated."
33 git clone "$_gitroot" "$_gitname"
36 msg "GIT checkout done or server timeout"
37 msg "Starting build..."
39 rm -rf "$srcdir/$_gitname-build"
40 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
43 cmake -DCMAKE_INSTALL_PREFIX=/usr -DENABLE_TESTS=Off -DCMAKE_BUILD_TYPE=Release
47 cd "$srcdir/$_gitname-build"
48 make DESTDIR="${pkgdir}/" install