diff options
Diffstat (limited to 'core/modules/slxbrowser/module.build')
-rw-r--r-- | core/modules/slxbrowser/module.build | 26 |
1 files changed, 26 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() { + : +} + |