summaryrefslogtreecommitdiffstats
path: root/core/modules/beamergui/module.build
diff options
context:
space:
mode:
authorSebastian2016-04-25 12:01:08 +0200
committerSebastian2016-04-25 12:01:08 +0200
commit5acda3eaeabae9045609539303a8c12c4ce401f1 (patch)
tree7e71975f8570b05aafe2ea6ec0e242a8912387bb /core/modules/beamergui/module.build
parentinitial commit (diff)
downloadmltk-5acda3eaeabae9045609539303a8c12c4ce401f1.tar.gz
mltk-5acda3eaeabae9045609539303a8c12c4ce401f1.tar.xz
mltk-5acda3eaeabae9045609539303a8c12c4ce401f1.zip
merge with latest dev version
Diffstat (limited to 'core/modules/beamergui/module.build')
-rw-r--r--core/modules/beamergui/module.build27
1 files changed, 27 insertions, 0 deletions
diff --git a/core/modules/beamergui/module.build b/core/modules/beamergui/module.build
new file mode 100644
index 00000000..f920bb74
--- /dev/null
+++ b/core/modules/beamergui/module.build
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+fetch_source() {
+ git clone "${REQUIRED_GIT}" src
+}
+
+build() {
+ local SRCDIR="${MODULE_WORK_DIR}/src/"
+ if [[ "$SYS_DISTRIBUTION" == "opensuse" && "$SYS_VERSION" == "13.2" ]]; then
+ QMAKE="/usr/$LIB64/qt4/bin/qmake"
+ else
+ QMAKE="$(which qmake-qt4)"
+ fi
+
+ # first activate qt 4
+ activate_qt 4
+
+ mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin"
+ cd "${MODULE_BUILD_DIR}/opt/openslx/bin" || perror "Could not cd!"
+ pinfo "Running qmake"
+ "$QMAKE" "$SRCDIR/src/beamergui.pro" -r -spec linux-g++ || perror "'qmake-qt4' failed (e.g. not installed)."
+ pinfo "Running make"
+ make || perror "'make' failed."
+}
+post_copy() {
+ :
+}