From 3eb6a0cd125ca7a04f5aabdfe138cd35f3f9026a Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 7 Jul 2017 15:25:55 +0200 Subject: [slxbrowser] New module --- core/modules/slxbrowser/module.build | 26 ++++++++++++++++++++++++++ core/modules/slxbrowser/module.conf | 4 ++++ core/modules/slxbrowser/module.conf.ubuntu | 5 +++++ 3 files changed, 35 insertions(+) create mode 100644 core/modules/slxbrowser/module.build create mode 100644 core/modules/slxbrowser/module.conf create mode 100644 core/modules/slxbrowser/module.conf.ubuntu (limited to 'core/modules/slxbrowser') diff --git a/core/modules/slxbrowser/module.build b/core/modules/slxbrowser/module.build new file mode 100644 index 00000000..e1b70091 --- /dev/null +++ b/core/modules/slxbrowser/module.build @@ -0,0 +1,26 @@ +#!/bin/bash + +fetch_source() { + git clone "${REQUIRED_GIT}" "${MODULE_WORK_DIR}/src" +} + +build() { + local SRCDIR="${MODULE_WORK_DIR}/src/" + + mkdir -p "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}" + cd "${MODULE_BUILD_DIR}/${REQUIRED_PREFIX}" || perror "No dir" + + pinfo "Running cmake" + # use qt4-dev (in case eg. qt4 and 5 are installed) + activate_qt 5 + + cmake "$SRCDIR" || perror "'cmake $SRCDIR' failed." + make || perror "'make' failed." + + cd - > /dev/null +} + +post_copy() { + : +} + diff --git a/core/modules/slxbrowser/module.conf b/core/modules/slxbrowser/module.conf new file mode 100644 index 00000000..1e9dabd0 --- /dev/null +++ b/core/modules/slxbrowser/module.conf @@ -0,0 +1,4 @@ +#!/bin/bash +REQUIRED_GIT="git://git.openslx.org/openslx-ng/slxbrowser.git" +REQUIRED_PREFIX="/opt/openslx/bin" +REQUIRED_BINARIES="slxbrowser" diff --git a/core/modules/slxbrowser/module.conf.ubuntu b/core/modules/slxbrowser/module.conf.ubuntu new file mode 100644 index 00000000..fa629c74 --- /dev/null +++ b/core/modules/slxbrowser/module.conf.ubuntu @@ -0,0 +1,5 @@ +#!/bin/bash +REQUIRED_INSTALLED_PACKAGES=" + cmake + libqt5webkit5-dev +" -- cgit v1.2.3-55-g7522