diff options
author | Jonathan Bauer | 2017-07-20 14:37:58 +0200 |
---|---|---|
committer | Jonathan Bauer | 2017-07-20 14:37:58 +0200 |
commit | 0b9a03a09d696174a1b199f99bf00bbc06ac6e7d (patch) | |
tree | 5ceea67713e2e77b50481a4748f067b1059840e1 /core/modules/lightdm-qt-greeter/module.build | |
parent | [lightdm] filtered REQUIRED_DIR list and systemd service (diff) | |
download | mltk-0b9a03a09d696174a1b199f99bf00bbc06ac6e7d.tar.gz mltk-0b9a03a09d696174a1b199f99bf00bbc06ac6e7d.tar.xz mltk-0b9a03a09d696174a1b199f99bf00bbc06ac6e7d.zip |
[lightdm-qt-greeter] new module for slxgreeter
Diffstat (limited to 'core/modules/lightdm-qt-greeter/module.build')
-rw-r--r-- | core/modules/lightdm-qt-greeter/module.build | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/core/modules/lightdm-qt-greeter/module.build b/core/modules/lightdm-qt-greeter/module.build new file mode 100644 index 00000000..9698970e --- /dev/null +++ b/core/modules/lightdm-qt-greeter/module.build @@ -0,0 +1,34 @@ +#!/bin/bash +fetch_source() { + git clone "$REQUIRED_GIT" "${MODULE_WORK_DIR}/src" +} + +build() { + local SRCDIR="${MODULE_WORK_DIR}/src/" + local BUILDDIR="${SRCDIR}/build/" + local DESTDIR="${MODULE_BUILD_DIR}/opt/openslx/bin" + + # now regular cmake stuff + mkdir -p "${BUILDDIR}" || perror "Could not mkdir ${BUILDDIR}!" + pushd "${BUILDDIR}" &>/dev/null || perror "Could not cd to ${BUILDDIR}!" + pinfo "Running cmake" + cmake .. || perror "'cmake ..' failed." + pinfo "Running make" + make || perror "'make' failed." + popd &>/dev/null + # "install" + mkdir -p "${DESTDIR}" || perror "Could not mkdir ${DESTDIR}!" + mv "${BUILDDIR}/qt-lightdm-greeter" "${DESTDIR}" + mkdir -p "${MODULE_BUILD_DIR}/usr/share/xgreeters" + cp "${SRCDIR}/qt-lightdm-greeter.desktop" "${MODULE_BUILD_DIR}/usr/share/xgreeters" + + COPYLIST="list_dpkg_output" + [ -e "$COPYLIST" ] && rm "$COPYLIST" + list_packet_files >> "$COPYLIST" + tarcopy "$(cat "$COPYLIST" | sort -u)" "${MODULE_BUILD_DIR}" +} + +post_copy() { + : +} + |