forked from kiss-community/kiss
kiss: Added lzma support to sources and tarballs
This commit is contained in:
parent
6415605174
commit
931b2e13f3
20
kiss
20
kiss
@ -138,11 +138,12 @@ run_hook() {
|
||||
|
||||
decompress() {
|
||||
case $1 in
|
||||
*.bz2) bzip2 -d ;;
|
||||
*.xz) xz -dcT 0 ;;
|
||||
*.tgz|*.gz) gzip -d ;;
|
||||
*.zst) zstd -dc ;;
|
||||
*.tar) cat ;;
|
||||
*.bz2) bzip2 -d ;;
|
||||
*.xz) xz -dcT 0 ;;
|
||||
*.tgz|*.gz) gzip -d ;;
|
||||
*.zst) zstd -dc ;;
|
||||
*.lzma|*.lz) lzma -dc ;;
|
||||
*.tar) cat ;;
|
||||
esac < "$1"
|
||||
}
|
||||
|
||||
@ -600,10 +601,11 @@ pkg_tar() (
|
||||
|
||||
# Create a tarball from the contents of the built package.
|
||||
"$tar" cf - . | case ${KISS_COMPRESS:=gz} in
|
||||
bz2) bzip2 -z ;;
|
||||
gz) gzip -6 ;;
|
||||
xz) xz -zT 0 ;;
|
||||
zst) zstd -z ;;
|
||||
bz2) bzip2 -z ;;
|
||||
gz) gzip -6 ;;
|
||||
xz) xz -zT 0 ;;
|
||||
zst) zstd -z ;;
|
||||
lzma) lzma -z ;;
|
||||
esac > "$bin_dir/$1#$version-$release.tar.${KISS_COMPRESS:=gz}"
|
||||
|
||||
log "$1" "Successfully created tarball"
|
||||
|
2
kiss.1
2
kiss.1
@ -101,7 +101,7 @@ export KISS_KEEPLOG=0
|
||||
|
||||
# Compression method to use for package tarballs.
|
||||
#
|
||||
# Valid options: 'bz2', 'gz' (default), 'xz', 'zst'
|
||||
# Valid options: 'bz2', 'gz' (default), 'lzma', 'xz', 'zst'
|
||||
export KISS_COMPRESS=gz
|
||||
|
||||
# Keep build, package and extraction cache directories for debugging
|
||||
|
Loading…
Reference in New Issue
Block a user