summaryrefslogtreecommitdiff
path: root/repo/virt-manager/virt-manager.xibuild
blob: 6050b75ced15556d3216bb68c6276cb5f532a9ad (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
#!/bin/sh

NAME="virt-manager"
DESC="GUI for managing virtual machines"

MAKEDEPS="intltool glib python-docutils"
DEPS="libvirt libvirt-glib python-libvirt python-ipaddr python-urlgrabber libosinfo gtksourceview gtk-vnc"

PKG_VER=4.1.0
SOURCE="https://releases.pagure.org/virt-manager/virt-manager-$PKG_VER.tar.gz"

ADDITIONAL="
fix-latest-libvirt-xml-output.patch
tests-remove-sgio-unfiltered.patch
"

prepare () {
    apply_patches
}

build() {
	python3 setup.py build
}


package() {
	python3 setup.py --no-update-icon-cache --no-compile-schemas install --root "$PKG_DEST"
	python3 -m compileall "$PKG_DEST/usr/share/virt-manager"
	python3 -O -m compileall "$PKG_DEST/usr/share/virt-manager"
}

postinstall () {
    glib-compile-schemas /usr/share/glib-2.0/schemas/
}