updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / libvirt-glib-git / PKGBUILD
blob95e0c4565d88259714b1095cf36a2ef636793934
1 # Maintainer: Stefano Facchini <stefano.facchini@gmail.com>
2 pkgname=libvirt-glib-git
3 pkgver=20111116
4 pkgrel=1
5 pkgdesc="GLib bindings for libvirt"
6 arch=(i686 x86_64)
7 url="http://libvirt.org"
8 license=('LGPL2.1')
9 depends=('libvirt' 'glib2' 'gobject-introspection')
10 makedepends=('git')
11 provides=(libvirt-glib)
12 conflicts=(libvirt-glib)
13 options=('!libtool')
15 _gitroot=git://libvirt.org/libvirt-glib.git
16 _gitname=libvirt-glib
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [[ -d "$_gitname" ]]; then
23     cd "$_gitname" && git pull origin
24     msg "The local files are updated."
25   else
26     git clone "$_gitroot" "$_gitname"
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting build..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   ./autogen.sh --prefix=/usr
37   make
40 package() {
41   cd "$srcdir/$_gitname-build"
42   make DESTDIR="$pkgdir/" install
45 # vim:set ts=2 sw=2 et: