kiss: Add support for tgz archives.

This commit is contained in:
Dylan Araps 2019-06-23 08:41:47 +03:00
parent da9ab2c0d8
commit 6bb9bfd7bb

2
kiss
View File

@ -99,7 +99,7 @@ pkg_extract() {
case $(source_type "$src"; echo $?)-$src in case $(source_type "$src"; echo $?)-$src in
2-*) cp -f "$src" "$mak_dir/$dest" ;; 2-*) cp -f "$src" "$mak_dir/$dest" ;;
3-*.tar*) 3-*.tar*|3-*.tgz)
tar xf "$src_dir/${src##*/}" -C "$mak_dir/$dest" \ tar xf "$src_dir/${src##*/}" -C "$mak_dir/$dest" \
--strip-components 1 || die "Couldn't extract ${src##*/}" ;; --strip-components 1 || die "Couldn't extract ${src##*/}" ;;