summaryrefslogtreecommitdiffstats
path: root/core/modules
diff options
context:
space:
mode:
authorSimon Rettberg2018-10-26 13:23:41 +0200
committerSimon Rettberg2018-10-26 13:23:41 +0200
commit86e0acb6547fe715087d1da1c643fc360606757e (patch)
tree82974902396a9cf7dc2b75c376a2f2e272a43801 /core/modules
parent[inc/system] New var for x86_64 / i386 (diff)
downloadmltk-86e0acb6547fe715087d1da1c643fc360606757e.tar.gz
mltk-86e0acb6547fe715087d1da1c643fc360606757e.tar.xz
mltk-86e0acb6547fe715087d1da1c643fc360606757e.zip
[cups-sicgs] Fix hardcoded 64bit filename, use downloader
Diffstat (limited to 'core/modules')
-rw-r--r--core/modules/cups-sicgs/module.build4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/cups-sicgs/module.build b/core/modules/cups-sicgs/module.build
index 212ac784..77033092 100644
--- a/core/modules/cups-sicgs/module.build
+++ b/core/modules/cups-sicgs/module.build
@@ -5,7 +5,7 @@ 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"
+ download "${REQUIRED_ARCHIVE}" "${MODULE_DIR}/src/driver.zip"
}
build() {
@@ -13,7 +13,7 @@ build() {
# 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"
+ tar -x -f *${X86_64_I386}*.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" \; \