summaryrefslogtreecommitdiffstats
path: root/core/modules/idleaction/module.build
diff options
context:
space:
mode:
authorSimon Rettberg2019-05-13 16:13:31 +0200
committerSimon Rettberg2019-05-13 16:13:31 +0200
commitddb79d2950cb9dc0a41797807bf5133dd8f4da12 (patch)
tree2e45e8165c4099e295a5d317fea9e6c3b6656ef0 /core/modules/idleaction/module.build
parent[kiosk-chromium] disable autofill for kiosks (diff)
downloadmltk-ddb79d2950cb9dc0a41797807bf5133dd8f4da12.tar.gz
mltk-ddb79d2950cb9dc0a41797807bf5133dd8f4da12.tar.xz
mltk-ddb79d2950cb9dc0a41797807bf5133dd8f4da12.zip
[xscreensaver/idleaction] Use idle-daemon
Diffstat (limited to 'core/modules/idleaction/module.build')
-rw-r--r--core/modules/idleaction/module.build11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/modules/idleaction/module.build b/core/modules/idleaction/module.build
index fcae45e0..6aac9d93 100644
--- a/core/modules/idleaction/module.build
+++ b/core/modules/idleaction/module.build
@@ -1,6 +1,6 @@
#!/bin/bash
fetch_source() {
- :
+ autoclone
}
build() {
@@ -11,6 +11,15 @@ build() {
|| perror "Compilation of xprintidle failed!"
gcc -std=c99 -o "$MODULE_BUILD_DIR/opt/openslx/bin/xprintlocktime" "$MODULE_DIR/xprintlocktime.c" -lX11 \
|| perror "Compilation of xprintlocktime failed!"
+ # idle-daemon
+ local SRCDIR="${MODULE_WORK_DIR}/src/idle-daemon"
+
+ mkdir -p "$MODULE_BUILD_DIR/opt/openslx/sbin"
+ cd "${MODULE_BUILD_DIR}/opt/openslx/sbin" || perror "Could not cd!"
+ pinfo "Running cmake"
+ cmake "$SRCDIR" || perror "'cmake $SRCDIR' failed."
+ pinfo "Running make"
+ make || perror "'make' failed."
}
post_copy() {