updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / augeas-git / PKGBUILD
blob85998558d1f5321d50b2d76c3071bf3eccdb6e83
1 # Contributor: Jon Nordby <jononor@gmail.com>
2 # Maintainer: Jon Nordby <jononor@gmail.com>
4 _pkgname=augeas
5 pkgname=$_pkgname-git
6 pkgver=20101127
7 pkgrel=1
8 pkgdesc="A program for editing configuration files and a configuration API - git version"
9 arch=('i686' 'x86_64')
10 url="http://augeas.net"
11 license=('LGPL')
12 depends=('readline')
13 makedepends=('git')
14 provides=($_pkgname)
15 conflicts=($_pkgname)
17 _gitroot="git://git.fedorahosted.org/augeas.git"
18 _gitname="augeas"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d $_gitname ] ; then
25     cd $_gitname && git pull origin
26     msg "The local files are updated."
27   else
28     git clone $_gitroot $_gitname
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   # BUILD
39   ./autogen.sh
40   ./configure --prefix=/usr
41   make || return 1
42   make DESTDIR="$pkgdir/" install
43