summaryrefslogtreecommitdiffstats
path: root/core/modules/slxbrowser
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/slxbrowser')
-rw-r--r--core/modules/slxbrowser/module.build26
-rw-r--r--core/modules/slxbrowser/module.conf4
-rw-r--r--core/modules/slxbrowser/module.conf.ubuntu5
3 files changed, 35 insertions, 0 deletions
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
+"