kiss: zstd support

This commit is contained in:
Dylan Araps 2020-03-22 14:46:38 +02:00
parent c570d24086
commit d01ffde93c
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
2 changed files with 3 additions and 1 deletions

View File

@ -33,7 +33,7 @@ while read -r file; do
musl|gcc|$1) ;; musl|gcc|$1) ;;
*) printf '%s\n' "$pkg" ;; *) printf '%s\n' "$pkg" ;;
esac esac
done done
done < "$db_dir/$1/manifest" | sort -u done < "$db_dir/$1/manifest" | sort -u
printf '\n=> Package dependencies:\n' printf '\n=> Package dependencies:\n'

2
kiss
View File

@ -93,6 +93,7 @@ decompress() {
*.bz2) bzip2 -d ;; *.bz2) bzip2 -d ;;
*.xz) xz -dcT 0 ;; *.xz) xz -dcT 0 ;;
*.tgz|*.gz) gzip -d ;; *.tgz|*.gz) gzip -d ;;
*.zst) zstd -dc ;;
esac < "$1" esac < "$1"
} }
@ -505,6 +506,7 @@ pkg_tar() {
bz2) bzip2 -z ;; bz2) bzip2 -z ;;
xz) xz -zT 0 ;; xz) xz -zT 0 ;;
gz) gzip -6 ;; gz) gzip -6 ;;
zst) zstd -z ;;
esac \ esac \
> "$bin_dir/$1#$version-$release.tar.${KISS_COMPRESS:=gz}" > "$bin_dir/$1#$version-$release.tar.${KISS_COMPRESS:=gz}"