diff options
author | Predrag Ivanovic <predivan@mts.rs> | 2017-09-18 15:11:37 +0200 |
---|---|---|
committer | Fredrik Rinnestam <fredrik@crux.nu> | 2017-09-19 20:11:19 +0200 |
commit | 62e416b52cf328d675a8f2e28007f9e697be3025 (patch) | |
tree | 24b5b15f2e663d7926257f4b0e6de93ae6501716 | |
parent | 8dfe440b32a7db99d33b0daa656ce82230e32bf3 (diff) | |
download | pkgutils-62e416b52cf328d675a8f2e28007f9e697be3025.tar.gz pkgutils-62e416b52cf328d675a8f2e28007f9e697be3025.tar.xz |
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
-rwxr-xr-x | pkgmk.in | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" ;; |