summaryrefslogtreecommitdiffstats
path: root/remote/modules/printergui
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/printergui')
-rw-r--r--remote/modules/printergui/module.build10
1 files changed, 10 insertions, 0 deletions
diff --git a/remote/modules/printergui/module.build b/remote/modules/printergui/module.build
index 869e8716..ac8ab7d1 100644
--- a/remote/modules/printergui/module.build
+++ b/remote/modules/printergui/module.build
@@ -21,6 +21,16 @@ build() {
pinfo "Running make"
make || perror "'make' failed."
chmod 0700 "$DESTDIR/printpwgui" # So picky cupsd won't drop privileges to lp
+
+ # fetch ghostscript binary
+ local BIN_LOCATION="$(which gs)"
+ [ ! -z "${BIN_LOCATION}" ] && BIN_LOCATION=$(readlink -f "$BIN_LOCATION")
+ if [ ! -z "${BIN_LOCATION}" -a -e "${BIN_LOCATION}" ]; then
+ tarcopy "${BIN_LOCATION}" "${MODULE_BUILD_DIR}"
+ else
+ perror "'gs' not found on the system! Please install ghostscript."
+ fi
+
}
post_copy() {
: