2 # See http://wiki.archlinux.org/index.php/Arch_CVS_&_SVN_PKGBUILD_guidelines
3 # for more information on packaging from GIT sources.
5 # Contributor: Denis Martinez <deuns.martinez@gmail.com>
9 pkgdesc="Grantlee is a string template engine based on the Django template system."
10 arch=('i686' 'x86_64')
11 url="http://www.gitorious.org/grantlee"
15 makedepends=('git' 'cmake')
26 _gitroot="git://gitorious.org/grantlee/grantlee.git"
31 msg "Connecting to GIT server...."
33 if [ -d $_gitname ] ; then
34 cd $_gitname && git pull origin
35 msg "The local files are updated."
40 msg "GIT checkout done or server timeout"
41 msg "Starting make..."
43 rm -rf "$srcdir/$_gitname-build"
44 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
45 cd "$srcdir/$_gitname-build"
53 cmake -DCMAKE_INSTALL_PREFIX=/usr ..
55 make DESTDIR="$pkgdir/" install