updated on Wed Jan 25 00:20:47 UTC 2012
[aur-mirror.git] / gnome-boxes-git / PKGBUILD
blobb5445dd07a823c0e807a32c17bb71f426e8ea235
1 # Maintainer: Stefano Facchini <stefano.facchini@gmail.com>
2 pkgname=gnome-boxes-git
3 pkgver=20111122
4 pkgrel=1
5 pkgdesc="A simple GNOME 3 application to access remote or virtual systems"
6 arch=('i686' 'x86_64')
7 url="http://www.gnome.org"
8 license=('LGPL2.1')
9 depends=('gtk3' 'clutter-gtk' 'spice-gtk3-git' 'libvirt-glib-git'
10          'gtk-vnc-git' 'udev' 'libosinfo' 'dconf' 'hicolor-icon-theme'
11          'desktop-file-utils' 'shared-mime-info')
12 makedepends=('git' 'vala')
13 optdepends=('qemu-kvm-spice: to create new VMs')
14 provides=('gnome-boxes')
15 conflicts=('gnome-boxes')
16 install=gnome-boxes.install
17 source=('gtk-3.2-toolbar-fix.patch')
18 md5sums=('0dd09f031a13254a79526320d9bc36bb')
20 _gitroot=git://git.gnome.org/gnome-boxes
21 _gitname=gnome-boxes
23 build() {
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
27   if [[ -d "$_gitname" ]]; then
28     cd "$_gitname" && git pull origin
29     msg "The local files are updated."
30   else
31     git clone "$_gitroot" "$_gitname"
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting build..."
37   rm -rf "$srcdir/$_gitname-build"
38   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
41   # Unbreak gnome-boxes with gtk+ 3.2
42   # (gnome-boxes would require gtk+ commit 5cf0450c69f7bbdb0d1ca22ec54355e3b3e8c9c2)
43   patch -p1 < "$srcdir/gtk-3.2-toolbar-fix.patch"
45   ./autogen.sh --prefix=/usr
46   make
49 package() {
50   cd "$srcdir/$_gitname-build"
51   make DESTDIR="$pkgdir/" install
54 # vim:set ts=2 sw=2 et: