summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/modules/cups-sicgs/module.build28
-rw-r--r--core/modules/cups-sicgs/module.conf5
2 files changed, 33 insertions, 0 deletions
diff --git a/core/modules/cups-sicgs/module.build b/core/modules/cups-sicgs/module.build
new file mode 100644
index 00000000..212ac784
--- /dev/null
+++ b/core/modules/cups-sicgs/module.build
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+
+fetch_source() {
+ [ -s "${MODULE_DIR}/src/driver.zip" ] && return 0
+ rm -rf -- "${MODULE_DIR}/src"
+ mkdir -p "${MODULE_DIR}/src"
+ wget -O "${MODULE_DIR}/src/driver.zip" "${REQUIRED_ARCHIVE}" || perror "Could not create ${MODULE_DIR}/src"
+}
+
+build() {
+ cd "${MODULE_DIR}/src/" || perror "Could not cd to '${MODULE_DIR}/src'. Did fetch_source work?"
+ # Initial archive is zip
+ unzip -j -o "${MODULE_DIR}/src/driver.zip" || perror "Could not extract initial driver.zip"
+ # Then we have two tgz, 32bit and 64bit
+ tar -x -f *x86_64*.tar* --wildcards '*/sic*' || perror "Could not extract binaries from inner tar"
+
+ mkdir -p "${MODULE_BUILD_DIR}/usr/bin"
+ find . -name "sic*" -type f -executable -exec cp {} "${MODULE_BUILD_DIR}/usr/bin" \; \
+ || perror "Could not copy sic* binaries to module build dir"
+
+ cd - &>/dev/null
+}
+
+post_copy() {
+ :
+}
+
diff --git a/core/modules/cups-sicgs/module.conf b/core/modules/cups-sicgs/module.conf
new file mode 100644
index 00000000..c1e2678e
--- /dev/null
+++ b/core/modules/cups-sicgs/module.conf
@@ -0,0 +1,5 @@
+REQUIRED_ARCHIVE="http://files.canon-europe.com/files/soft45525/Software/CQue_v3.0.2_Linux_32_64_DE.tar.zip"
+REQUIRED_BINARIES="
+ sicgsfilter
+ sicnc
+"