summaryrefslogtreecommitdiffstats
path: root/core/modules/virt-manager/module.build
diff options
context:
space:
mode:
authorManuel Bentele2021-10-11 16:55:19 +0200
committerManuel Bentele2021-10-12 13:12:56 +0200
commitc3be71d625db394f74fde333a77a2ff68aba6079 (patch)
tree4ffdcbd0039c736c0044d1487a06119adc866cb2 /core/modules/virt-manager/module.build
parent[libvirt-python] Change installation directory for python modules (diff)
downloadmltk-c3be71d625db394f74fde333a77a2ff68aba6079.tar.gz
mltk-c3be71d625db394f74fde333a77a2ff68aba6079.tar.xz
mltk-c3be71d625db394f74fde333a77a2ff68aba6079.zip
[virt-manager] Add module to build virt-manager from source
Diffstat (limited to 'core/modules/virt-manager/module.build')
-rw-r--r--core/modules/virt-manager/module.build18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/modules/virt-manager/module.build b/core/modules/virt-manager/module.build
new file mode 100644
index 00000000..869bc8a5
--- /dev/null
+++ b/core/modules/virt-manager/module.build
@@ -0,0 +1,18 @@
+#!/bin/bash
+fetch_source() {
+ autoclone
+}
+
+build() {
+ local SRCDIR="${MODULE_WORK_DIR}/src/virt-manager"
+ local DSTDIR="${MODULE_BUILD_DIR}"
+ cde "${SRCDIR}"
+
+ python3 setup.py configure --default-hvs qemu,lxc --default-graphics spice || perror "'setup.py configure' failed."
+ python3 setup.py build || perror "'setup.py build' failed."
+ python3 setup.py --no-update-icon-cache --no-compile-schemas install --root "${DSTDIR}" --no-compile -O0 || perror "'setup.py install' failed."
+}
+
+post_copy() {
+ :
+}