From 7c114e60d48c50723f84348c372bd767996100c7 Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Thu, 9 Mar 2017 16:08:14 +0100 Subject: [cups-sicgs] support canon secure print This installs sicgsfilter and sicnc binaries. --- core/modules/cups-sicgs/module.build | 28 ++++++++++++++++++++++++++++ core/modules/cups-sicgs/module.conf | 5 +++++ 2 files changed, 33 insertions(+) create mode 100644 core/modules/cups-sicgs/module.build create mode 100644 core/modules/cups-sicgs/module.conf (limited to 'core/modules/cups-sicgs') 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 +" -- cgit v1.2.3-55-g7522