updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / glusterfs-git / PKGBUILD
blob1a2f7aa196209a50429dfc000e6e9a8e0d61079a
1 # Contributor: Tony Lambiris <tony@libpcap.net>
2 pkgname=glusterfs-git
3 pkgver=20100630
4 pkgrel=1
5 pkgdesc="A cluster file-system capable of scaling to several peta-bytes (GIT version)."
6 arch=('i686' 'x86_64')
7 url="http://www.gluster.org/"
8 license=('GPL3')
9 groups=('clustering')
10 depends=('fuse' 'flex' 'bison' 'libtool' 'automake' 'autoconf')
11 provides=('glusterfs')
12 conflicts=('glusterfs')
14 _gitroot="git://git.gluster.com/glusterfs.git"
15 _gitname="glusterfs"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ ! -d $_gitname ] ; then
22     git clone $_gitroot $_gitname
23     cd $_gitname
24     # msg "Setting default branch to release-3.0"
25     git checkout --track -b REL_3 remotes/origin/release-3.0
26   else
27     cd $_gitname && git pull
28     msg "The local files are updated."
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -rf "$srcdir/$_gitname-build"
35   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   #
39   # BUILD HERE
40   #
42   ./autogen.sh
43   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
44   make || return 1
45   make DESTDIR="$pkgdir" install
47   install -D -m 755 $srcdir/$_gitname-build/README $pkgdir/usr/share/doc/glusterfs/
48   install -D -m 755 $srcdir/$_gitname-build/INSTALL $pkgdir/usr/share/doc/glusterfs/
49   install -D -m 755 $srcdir/$_gitname-build/COPYING $pkgdir/usr/share/doc/glusterfs/
50