1 # Contributor: Marti Raudsepp <marti@juffo.org>
2 # Contributor: Jonathan Wiersma <arch aur at jonw dot org>
3 # Contributor: Xupeng Yun <recordus@gmail.com>
8 pkgdesc="A command line tool which provides an easy way to provision operating systems into virtual machines."
9 depends=('python' 'libvirt' 'virtviewer' 'urlgrabber')
10 makedepends=('mercurial')
11 url="http://virt-manager.et.redhat.com/"
12 arch=('i686' 'x86_64')
13 provides=('virtinst=0.500.2')
14 conflicts=('virtinst')
18 _hgroot="http://hg.fedorahosted.org/hg"
19 _hgrepo="python-virtinst"
23 msg "Connecting to Mercurial server...."
25 if [ -d $_hgrepo ] ; then
27 hg pull -u || return 1
28 msg "The local files are updated."
30 hg clone $_hgroot $_hgrepo || return 1
33 msg "Mercurial checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_hgrepo-build"
37 cp -r "$srcdir/$_hgrepo" "$srcdir/$_hgrepo-build"
38 cd "$srcdir/$_hgrepo-build"
41 python ./setup.py build || return 1
42 python ./setup.py install --root=$pkgdir || return 1