forked from tools/pkgutils
pkgmk: dropped bzip2 support, added support for lzip
This commit is contained in:
parent
60825521fb
commit
ae5df6094b
@ -84,7 +84,7 @@ If set to 'no', pkgmk will strip built binaries.
|
||||
Default: 'no'
|
||||
.TP
|
||||
\fBPKGMK_COMPRESSION_MODE='STRING'\fP
|
||||
Option to select the mode used to compress the packages. Valid strings are gz, bz2 and xz.
|
||||
Option to select the mode used to compress the packages. Valid strings are gz, bz2, xz and lz.
|
||||
.br
|
||||
Default: 'gz'
|
||||
.SH SEE ALSO
|
||||
|
4
pkgmk.in
4
pkgmk.in
@ -549,8 +549,8 @@ build_package() {
|
||||
|
||||
case $PKGMK_COMPRESSION_MODE in
|
||||
gz) COMPRESSION="-z" ;;
|
||||
bz2) COMPRESSION="-j" ;;
|
||||
xz) COMPRESSION="-J" ;;
|
||||
lz) COMPRESSION="--lzip" ;;
|
||||
esac
|
||||
bsdtar -c $COMPRESSION -f $TARGET * && bsdtar -t -v -f $TARGET
|
||||
|
||||
@ -820,7 +820,7 @@ main() {
|
||||
check_pkgfile
|
||||
|
||||
case $PKGMK_COMPRESSION_MODE in
|
||||
gz|bz2|xz)
|
||||
gz|xz|lz)
|
||||
TARGET="$PKGMK_PACKAGE_DIR/$name#$version-$release.pkg.tar.$PKGMK_COMPRESSION_MODE"
|
||||
;;
|
||||
*)
|
||||
|
Loading…
x
Reference in New Issue
Block a user