From 62e416b52cf328d675a8f2e28007f9e697be3025 Mon Sep 17 00:00:00 2001 From: Predrag Ivanovic Date: Mon, 18 Sep 2017 15:11:37 +0200 Subject: pkgmk.in: Add 7z to unpack_source function Libarchive(bsdtar) can extract 7-Zip archives since 3.0, so add them as supported source Ref: https://github.com/libarchive/libarchive/wiki/LibarchiveFormats --- pkgmk.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgmk.in b/pkgmk.in index e7897ac5..c203f2c9 100755 --- a/pkgmk.in +++ b/pkgmk.in @@ -1,10 +1,10 @@ #!/bin/bash # # pkgutils -# +# # Copyright (c) 2000-2005 Per Liden # Copyright (c) 2006-2017 by CRUX team (http://crux.nu) -# +# # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or @@ -197,7 +197,7 @@ unpack_source() { for FILE in ${source[@]}; do LOCAL_FILENAME=`get_filename $FILE` case $LOCAL_FILENAME in - *.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.tar.lz|*.zip|*.rpm) + *.tar|*.tar.gz|*.tar.Z|*.tgz|*.tar.bz2|*.tbz2|*.tar.xz|*.txz|*.tar.lzma|*.tar.lz|*.zip|*.rpm|*.7z) COMMAND="bsdtar -p -o -C $SRC -xf $LOCAL_FILENAME" ;; *) COMMAND="cp $LOCAL_FILENAME $SRC" ;; -- cgit v1.2.3