updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / redstore-git / PKGBUILD
blob0974b61dd56db152c08aec92e7309ee1266ef4c2
1 # Maintainer: Christophe Gueret <christophe.gueret@gmail.com>
2 pkgname=redstore-git
3 pkgver=20110916
4 pkgrel=1
5 pkgdesc="RedStore is a lightweight RDF triplestore written in C using the Redland library."
6 arch=('i686' 'x86_64')
7 url="http://www.aelius.com/njh/redstore/"
8 license=('GPL')
9 depends=('rasqal>=0.9.25' 'redland>=1.0.14' 'raptor>=2.0.1')
10 makedepends=('git')
11 conflicts=('redstore')
12 replaces=('redstore')
14 _gitroot="git://github.com/njh/redstore.git"
15 _gitname="redstore-git"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [[ -d "$_gitname" ]]; then
22     cd "$_gitname" && git pull origin
23     msg "The local files are updated."
24   else
25     git clone "$_gitroot" "$_gitname"
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting build..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
35   #
36   # BUILD HERE
37   #
38   ./autogen.sh
39   ./configure --prefix=/usr
40   make
43 package() {
44   cd "$srcdir/$_gitname-build"
45   make DESTDIR="$pkgdir/" install
48 # vim:set ts=2 sw=2 et: