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
This commit is contained in:
parent
8dfe440b32
commit
62e416b52c
6
pkgmk.in
6
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" ;;
|
||||
|
Loading…
Reference in New Issue
Block a user