summaryrefslogtreecommitdiffstats
path: root/core/modules/slxbrowser/module.build
diff options
context:
space:
mode:
authorSimon Rettberg2017-07-07 15:25:55 +0200
committerSimon Rettberg2017-07-07 15:25:55 +0200
commit3eb6a0cd125ca7a04f5aabdfe138cd35f3f9026a (patch)
treeb33144e4bfa9059b68b0ae0e454f248a3360e54a /core/modules/slxbrowser/module.build
parent[hardware-stats] Include pending sectors in bad sector count (diff)
downloadmltk-3eb6a0cd125ca7a04f5aabdfe138cd35f3f9026a.tar.gz
mltk-3eb6a0cd125ca7a04f5aabdfe138cd35f3f9026a.tar.xz
mltk-3eb6a0cd125ca7a04f5aabdfe138cd35f3f9026a.zip
[slxbrowser] New module
Diffstat (limited to 'core/modules/slxbrowser/module.build')
-rw-r--r--core/modules/slxbrowser/module.build26
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() {
+ :
+}
+