desktop/support-pkg-grantlee-git/PKGBUILD
2010-07-10 02:26:08 +00:00

57 lines
1.2 KiB
Bash

# See http://wiki.archlinux.org/index.php/Arch_CVS_&_SVN_PKGBUILD_guidelines
# for more information on packaging from GIT sources.
# Contributor: Denis Martinez <deuns.martinez@gmail.com>
pkgname=grantlee-git
pkgver=20100709
pkgrel=1
pkgdesc="Grantlee is a string template engine based on the Django template system."
arch=('i686' 'x86_64')
url="http://www.gitorious.org/grantlee"
license=('LGPL3')
groups=()
depends=('qt')
makedepends=('git' 'cmake')
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
source=()
noextract=()
md5sums=()
_gitroot="git://gitorious.org/grantlee/grantlee.git"
_gitname="grantlee"
build() {
cd "$srcdir"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "$srcdir/$_gitname-build"
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
#
# BUILD HERE
#
mkdir build &&
cd build &&
cmake -DCMAKE_INSTALL_PREFIX=/usr ..
make || return 1
make DESTDIR="$pkgdir/" install
}