aboutsummaryrefslogtreecommitdiffstats
path: root/main/virt-manager/APKBUILD
blob: 02855b308a4c88abb542f0e6ab5b1880f59d73d2 (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
64
65
66
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=virt-manager
pkgver=1.2.0
pkgrel=0
pkgdesc="GUI for managing virtual machines"
url="http://virt-manager.org/"
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 libosinfo
	ttf-dejavu gnome-icon-theme dconf"
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.org/download/sources/virt-manager/virt-manager-$pkgver.tar.gz
	dont-double-create-spice-display.patch"

_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-convert \
		"$subpkgdir"/usr/share/virt-manager/ || return 1
	mv "$pkgdir"/usr/bin/virt-install \
		"$pkgdir"/usr/bin/virt-clone \
		"$pkgdir"/usr/bin/virt-convert \
		"$subpkgdir"/usr/bin/ || return 1
}

md5sums="89e6c816054f3a3751100a8d79ec97c2  virt-manager-1.2.0.tar.gz
5c5eda2c20ae89a64444515a78aefbb9  dont-double-create-spice-display.patch"
sha256sums="f8ca4a562a5e4a7795f3fecb5cc07bb32a298c955c9de436a1921f83c5e8a514  virt-manager-1.2.0.tar.gz
aae446cecfea9703df3835ebf2bc9c215328738214b13ca625fa6951628e4386  dont-double-create-spice-display.patch"
sha512sums="28fc334ea83e766978ab8b6bc927cc463a0695eb047cac5878a43baf28876f28470903dab6c4ce9464454b3d865c464ef96b2fe63f3f43ad427020f2bf5e8271  virt-manager-1.2.0.tar.gz
a0ff9479328ac4845f00454d4fc78c5ffe825de1186c4d09d7d6a06ccbbc98d965a9b281395cc8a285bf16755a1a5519466d3a0c07c25cb726d093de46496864  dont-double-create-spice-display.patch"