updated on Sun Jan 22 20:01:29 UTC 2012
[aur-mirror.git] / libgcal-git / PKGBUILD
blobb4d03354c38d825a17f6a6d60315c4a91005093e
1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
2 # Contributor: heaven <vo.zaeb at gmail.com>
3 # Contributor: Patrick Schwalm <patrick.schwalm@googlemail.com>
5 pkgname='libgcal-git'
6 pkgver=20111102
7 pkgrel=1
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')
11 license=('GPL')
13 depends=('libxml2' 'curl')
14 makedepends=('git' 'cmake')
16 conflicts=('libgcal')
17 provides=('libgcal')
19 source=()
20 md5sums=()
22 _gitroot='git://gitorious.org/libgcal/libgcal.git'
23 _gitname='libgcal'
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [[ -d "$_gitname" ]]; then
30     cd "$_gitname" && git pull origin
31     msg "The local files are updated."
32   else
33     git clone "$_gitroot" "$_gitname"
34   fi
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
46 package() {
47   cd "$srcdir/$_gitname-build"
48   make DESTDIR="${pkgdir}/" install