blob: f4f96a771964a53b818c9c1ee374220e5635587b (
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
|
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=virt-manager
pkgver=2.1.0
pkgrel=1
pkgdesc="GUI for managing virtual machines"
url="https://virt-manager.org/"
arch="noarch"
license="GPL-2.0-or-later"
depends="python3 $pkgname-common py3-configparser py3-libxml2 py3-libvirt"
_common_deps="libvirt-glib py3-gobject3 py3-requests spice-gtk vte3 libosinfo py3-cairo gtk-vnc>=0.5.2-r2"
makedepends="intltool grep glib"
subpackages="$pkgname-doc $pkgname-lang
$pkgname-common
virt-install:virt_install"
source="https://releases.pagure.org/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$pkgver
build() {
cd "$builddir"
python3 setup.py build
}
check() {
cd "$builddir"
python3 setup.py check
}
package() {
cd "$builddir"
python3 setup.py --no-update-icon-cache --no-compile-schemas install --root "$pkgdir"
python3 -m compileall "${pkgdir}/usr/share/virt-manager"
python3 -O -m compileall "${pkgdir}/usr/share/virt-manager"
}
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
}
virt_install() {
pkgdesc="Utilities for installing virtual machines"
depends="$pkgname-common=$pkgver-r$pkgrel libosinfo"
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/
mv "$pkgdir"/usr/bin/virt-install \
"$pkgdir"/usr/bin/virt-clone \
"$pkgdir"/usr/bin/virt-convert \
"$subpkgdir"/usr/bin/
}
sha512sums="48590ff58246e13b73c7ab741ca854bfebae27fb90a891168db5d3fac1d066cce603f83b8d993e70e387624f911fc8503abe488e7992bc50f49d7e980aed5afb virt-manager-2.1.0.tar.gz"
|