makepkg: add support for .pkg.tar.lzo
Supported by libarchive as of version 3.1.0 when compiled against lzo2 or in the presence of the lzop binary. Signed-off-by: Dave Reisner <dreisner@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
540cae816a
commit
0a5b79e133
2 changed files with 4 additions and 1 deletions
|
@ -243,6 +243,7 @@ Options
|
||||||
**COMPRESSGZ=**"(gzip -c -f -n)"::
|
**COMPRESSGZ=**"(gzip -c -f -n)"::
|
||||||
**COMPRESSBZ2=**"(bzip2 -c -f)"::
|
**COMPRESSBZ2=**"(bzip2 -c -f)"::
|
||||||
**COMPRESSXZ=**"(xz -c -z -)"::
|
**COMPRESSXZ=**"(xz -c -z -)"::
|
||||||
|
**COMPRESSLZO**"(lzop -q)"::
|
||||||
**COMPRESSLRZ=**"(lrzip -q)"::
|
**COMPRESSLRZ=**"(lrzip -q)"::
|
||||||
**COMPRESSZ=**"(compress -c -f)"::
|
**COMPRESSZ=**"(compress -c -f)"::
|
||||||
Sets the command and options used when compressing compiled or source
|
Sets the command and options used when compressing compiled or source
|
||||||
|
@ -251,7 +252,7 @@ Options
|
||||||
**PKGEXT=**".pkg.tar.gz", **SRCEXT=**".src.tar.gz"::
|
**PKGEXT=**".pkg.tar.gz", **SRCEXT=**".src.tar.gz"::
|
||||||
Sets the compression used when making compiled or source packages. The
|
Sets the compression used when making compiled or source packages. The
|
||||||
current valid suffixes are `.tar`, `.tar.gz`, `.tar.bz2`, `.tar.xz`,
|
current valid suffixes are `.tar`, `.tar.gz`, `.tar.bz2`, `.tar.xz`,
|
||||||
`.tar.lrz` and `.tar.Z`.
|
`.tar.lzo`, `.tar.lrz` and `.tar.Z`.
|
||||||
Do not touch these unless you know what you are doing.
|
Do not touch these unless you know what you are doing.
|
||||||
|
|
||||||
See Also
|
See Also
|
||||||
|
|
|
@ -1828,6 +1828,7 @@ create_package() {
|
||||||
*tar.bz2) ${COMPRESSBZ2[@]:-bzip2 -c -f} ;;
|
*tar.bz2) ${COMPRESSBZ2[@]:-bzip2 -c -f} ;;
|
||||||
*tar.xz) ${COMPRESSXZ[@]:-xz -c -z -} ;;
|
*tar.xz) ${COMPRESSXZ[@]:-xz -c -z -} ;;
|
||||||
*tar.lrz) ${COMPRESSLRZ[@]:-lrzip -q} ;;
|
*tar.lrz) ${COMPRESSLRZ[@]:-lrzip -q} ;;
|
||||||
|
*tar.lzo) ${COMPRESSLZO[@]:-lzop -q} ;;
|
||||||
*tar.Z) ${COMPRESSZ[@]:-compress -c -f} ;;
|
*tar.Z) ${COMPRESSZ[@]:-compress -c -f} ;;
|
||||||
*tar) cat ;;
|
*tar) cat ;;
|
||||||
*) warning "$(gettext "'%s' is not a valid archive extension.")" \
|
*) warning "$(gettext "'%s' is not a valid archive extension.")" \
|
||||||
|
@ -1944,6 +1945,7 @@ create_srcpackage() {
|
||||||
*tar.bz2) TAR_OPT="-j" ;;
|
*tar.bz2) TAR_OPT="-j" ;;
|
||||||
*tar.xz) TAR_OPT="-J" ;;
|
*tar.xz) TAR_OPT="-J" ;;
|
||||||
*tar.lrz) TAR_OPT="--lrzip" ;;
|
*tar.lrz) TAR_OPT="--lrzip" ;;
|
||||||
|
*tar.lzo) TAR_OPT="--lzop" ;;
|
||||||
*tar.Z) TAR_OPT="-Z" ;;
|
*tar.Z) TAR_OPT="-Z" ;;
|
||||||
*tar) TAR_OPT="" ;;
|
*tar) TAR_OPT="" ;;
|
||||||
*) warning "$(gettext "'%s' is not a valid archive extension.")" \
|
*) warning "$(gettext "'%s' is not a valid archive extension.")" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue