updated on Mon Jan 9 20:07:11 UTC 2012
[aur-mirror.git] / gkeyfile-sharp-git / PKGBUILD
blob589496b98aa3b4f5521b7a8faffe82eaa8c07c68
1 #Contributor: neuromante <lorenzo.nizzi.grifi@gmail.com>
3 pkgname=gkeyfile-sharp-git
4 pkgver=20100902
5 pkgrel=1
6 pkgdesc="Mono bindings for GLib’s GKeyFile"
7 arch=('i686' 'x86_64')
8 url="http://github.com/mono/gkeyfile-sharp"
9 license=('LGPL')
10 depends=('mono')
11 makedepends=('git')
12 provides=('gkeyfile-sharp')
14 _gitroot="git://github.com/mono/gkeyfile-sharp.git"
15 _gitname="gkeyfile-sharp"
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 make..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
36   ./autogen.sh --prefix=/usr
37   make || return 1
38   make DESTDIR="$pkgdir/" install