aboutsummaryrefslogtreecommitdiffstats
path: root/main/virt-manager/APKBUILD
blob: d5e26a67b50b871f86fbf3106083a7713bbb9760 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=virt-manager
pkgver=0.10.0
pkgrel=0
pkgdesc="GUI for managing virtual machines"
url="http://virt-manager.et.redhat.com/"
arch="noarch"
license="GPL2+"
depends="python py-gobject3 gtk+3.0 vte3 py-libxml2 $pkgname-common
	libvirt-glib spice-gtk gtk-vnc>=0.5.2-r2"
depends_dev="intltool"
_common_deps="py-libxml2 py-urlgrabber py-ipaddr py-libvirt"
makedepends="$depends_dev grep $_common_deps"
install=
subpackages="$pkgname-doc $pkgname-lang
	$pkgname-common
	virt-install:virt_install"
source="http://virt-manager.et.redhat.com/download/sources/virt-manager/virt-manager-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

common() {
	pkgdesc="Common files used by virt-manager and virt-install"
	depends="$_common_deps"
	mkdir -p "$subpkgdir"/usr/share/virt-manager "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/share/virt-manager/virtcli \
		"$pkgdir"/usr/share/virt-manager/virtconv \
		"$pkgdir"/usr/share/virt-manager/virtinst \
		"$subpkgdir"/usr/share/virt-manager || return 1
}

virt_install() {
	pkgdesc="Utilities for installing virtual machines"
	depends="$pkgname-common=$pkgver-r$pkgrel"
	mkdir -p "$subpkgdir"/usr/share/virt-manager "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/share/virt-manager/virt-install \
		"$pkgdir"/usr/share/virt-manager/virt-clone \
		"$pkgdir"/usr/share/virt-manager/virt-image \
		"$pkgdir"/usr/share/virt-manager/virt-convert \
		"$subpkgdir"/usr/share/virt-manager/ || return 1
	mv "$pkgdir"/usr/bin/virt-install \
		"$pkgdir"/usr/bin/virt-clone \
		"$pkgdir"/usr/bin/virt-image \
		"$pkgdir"/usr/bin/virt-convert \
		"$subpkgdir"/usr/bin/ || return 1
}

md5sums="e23b8d2a7623b4e8e256c25735f332c8  virt-manager-0.10.0.tar.gz"
sha256sums="59bd8f316917228885261a1ecbeb9aadbb0b0e02cdf5fc974c78113c5814346d  virt-manager-0.10.0.tar.gz"
sha512sums="13eaed3645ccee79da6a972e02bb182b5bd24981ff55b6322b8aaf2689fab520f22f1e729bb5f5287d66526252a31a531c6595ee27489a52fb4829ae18cf8204  virt-manager-0.10.0.tar.gz"