diff options
Diffstat (limited to 'core/modules/printergui/module.build')
-rw-r--r-- | core/modules/printergui/module.build | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/core/modules/printergui/module.build b/core/modules/printergui/module.build new file mode 100644 index 00000000..a6f3ab17 --- /dev/null +++ b/core/modules/printergui/module.build @@ -0,0 +1,29 @@ +#!/bin/bash + +fetch_source() { + git clone "${REQUIRED_GIT}" src + cd src + git checkout "$REQUIRED_COMMIT" + cd .. +} + +build() { + local SRCDIR="${MODULE_WORK_DIR}/src/" + local DESTDIR="$MODULE_BUILD_DIR/opt/openslx/cups" + + # first activate qt 4 + activate_qt 4 + + mkdir -p "$DESTDIR" + cd "$DESTDIR" || perror "Could not cd to $DESTDIR!" + pinfo "Running cmake" + cmake "$SRCDIR/" || perror "'cmake' failed (e.g. not installed)." + pinfo "Running make" + make || perror "'make' failed." + chmod 0700 "$DESTDIR/printpwgui" # So picky cupsd won't drop privileges to lp + +} +post_copy() { + : +} + |