updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / convirt / PKGBUILD
blobeebb4185b21e730149a8c4f8eb69dd5f7cee4a93
1 pkgname=convirt
2 pkgver=1.1
3 pkgrel=4
4 pkgdesc="A graphical Virtualization management tool for KVM and Xen."
5 arch=('i686' 'x86_64')
6 url="http://www.convirture.com/"
7 license=('GPLv2')
8 depends=('python-paramiko' 'openssh' 'socat' 'xen' 'vte')
9 source=("http://www.convirture.com/downloads/convirt/$pkgver/convirt-$pkgver.tar.gz" "http://www.convirture.com/wiki/images/6/68/Patch_cumulative_convirt_9_oct_09.txt")
10 md5sums=('d7b1b6e29e75b5b85bed2d75b34b285e'
11          'db8284fbe57f1918e9c87a41757750c2')
13 build() {
14   cd "$srcdir/convirt-$pkgver"
16   sed -i -e 's#python#python2#' ConVirt
18   # add the 1.1 Cumulative Patch
19   patch -p0 < $srcdir/Patch_cumulative_convirt_9_oct_09.txt
20   
21   mkdir -p $pkgdir/var/cache/convirt
22   cp -a appliance_store image_store $pkgdir/var/cache/convirt
24   mkdir -p $pkgdir/usr/share/doc/convirt-$pkgver
25   cp -a doc $pkgdir/usr/share/doc/convirt-$pkgver
27   mkdir -p $pkgdir/usr/share/convirt
28   cp -a  ConVirt src install storage doc $pkgdir/usr/share/convirt
30   mkdir -p $pkgdir/etc
31   cp -a install/client/distros/ubuntu/convirt.conf $pkgdir/etc
33   mkdir -p $pkgdir/usr/bin
34   cd $pkgdir/usr/bin
35   ln -s ../share/convirt/ConVirt convirt