1 # Maintainer: Stefano Facchini <stefano.facchini@gmail.com>
2 pkgname=libvirt-glib-git
5 pkgdesc="GLib bindings for libvirt"
7 url="http://libvirt.org"
9 depends=('libvirt' 'glib2' 'gobject-introspection')
11 provides=(libvirt-glib)
12 conflicts=(libvirt-glib)
15 _gitroot=git://libvirt.org/libvirt-glib.git
20 msg "Connecting to GIT server...."
22 if [[ -d "$_gitname" ]]; then
23 cd "$_gitname" && git pull origin
24 msg "The local files are updated."
26 git clone "$_gitroot" "$_gitname"
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
41 cd "$srcdir/$_gitname-build"
42 make DESTDIR="$pkgdir/" install
45 # vim:set ts=2 sw=2 et: