blob: 061b0f7eebf6f99d850aa9beb516da1e7239f7a5 (
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=3.2.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/
}
|