diff options
author | Manuel Bentele | 2021-09-30 14:02:42 +0200 |
---|---|---|
committer | Manuel Bentele | 2021-10-12 13:12:55 +0200 |
commit | 333996bac9ca510175e37c9845c70271f56c0478 (patch) | |
tree | df56ef69be8fdcde152f47d312a078886cbd9f4d /core/modules | |
parent | [qemu-src] Add module for QEMU source build (diff) | |
download | mltk-333996bac9ca510175e37c9845c70271f56c0478.tar.gz mltk-333996bac9ca510175e37c9845c70271f56c0478.tar.xz mltk-333996bac9ca510175e37c9845c70271f56c0478.zip |
[virt-viewer] Add module for virt-viewer source build
Diffstat (limited to 'core/modules')
-rw-r--r-- | core/modules/virt-viewer/module.build | 28 | ||||
-rw-r--r-- | core/modules/virt-viewer/module.conf | 8 | ||||
-rw-r--r-- | core/modules/virt-viewer/module.conf.ubuntu | 18 |
3 files changed, 54 insertions, 0 deletions
diff --git a/core/modules/virt-viewer/module.build b/core/modules/virt-viewer/module.build new file mode 100644 index 00000000..9c5e89e2 --- /dev/null +++ b/core/modules/virt-viewer/module.build @@ -0,0 +1,28 @@ +#!/bin/bash +fetch_source() { + autoclone +} + +build() { + local SRCDIR="${MODULE_WORK_DIR}/src/virt-viewer" + local DSTDIR="${MODULE_BUILD_DIR}" + cde "${SRCDIR}" + + # install meson (>= 0.54.0) since packaged version is too old + pip3 install "meson>=0.54.0" + + meson build \ + --prefix="/usr" \ + --sysconfdir="/etc" \ + --localstatedir="/var" \ + -Dovirt=disabled \ + -Dspice=enabled \ + -Dvnc=enabled \ + -Dlibvirt=enabled || perror "'meson' failed." + ninja -v -C build || perror "'ninja' failed." + DESTDIR="${DSTDIR}" ninja -v -C build install || perror "'ninja install' failed." +} + +post_copy() { + : +} diff --git a/core/modules/virt-viewer/module.conf b/core/modules/virt-viewer/module.conf new file mode 100644 index 00000000..3dcabb13 --- /dev/null +++ b/core/modules/virt-viewer/module.conf @@ -0,0 +1,8 @@ +#!/bin/bash + +REQUIRED_GIT=" + https://gitlab.com/virt-viewer/virt-viewer.git||v10.0 +" + +# copy everything since there is a clean installation done by 'ninja install' +REQUIRED_DIRECTORIES="/" diff --git a/core/modules/virt-viewer/module.conf.ubuntu b/core/modules/virt-viewer/module.conf.ubuntu new file mode 100644 index 00000000..ab1907e8 --- /dev/null +++ b/core/modules/virt-viewer/module.conf.ubuntu @@ -0,0 +1,18 @@ +#!/bin/bash +REQUIRED_INSTALLED_PACKAGES=" + gcc + python3 + python3-pip + ninja-build + debhelper + libvirt-glib-1.0-dev + libgovirt-dev + libgtk-vnc-2.0-dev + libspice-client-gtk-3.0-dev + libxml2-dev + libglib2.0-dev + libgtk-3-dev + libvte-dev + libffi-dev + intltool +" |