xbps-src: support multiple pkg compression formats via etc/conf.
XBPS_PKG_COMPTYPE can be set via etc/conf to set your preferred compression format; defaults to xz, like xbps-create(1). The "none" setting is only available since 0.48 (unreleased).
This commit is contained in:
parent
b6d4eddb54
commit
983d68a31e
2 changed files with 10 additions and 0 deletions
|
@ -107,6 +107,7 @@ genpkg() {
|
||||||
--source-revisions "${_gitrevs}" \
|
--source-revisions "${_gitrevs}" \
|
||||||
--shlib-provides "${_shprovides}" \
|
--shlib-provides "${_shprovides}" \
|
||||||
--shlib-requires "${_shrequires}" \
|
--shlib-requires "${_shrequires}" \
|
||||||
|
--compression ${XBPS_PKG_COMPTYPE:=xz} \
|
||||||
${_preserve} ${_sourcerevs} ${PKGDESTDIR}
|
${_preserve} ${_sourcerevs} ${PKGDESTDIR}
|
||||||
rval=$?
|
rval=$?
|
||||||
|
|
||||||
|
|
|
@ -73,6 +73,15 @@ XBPS_SUCMD="sudo /bin/sh -c"
|
||||||
#
|
#
|
||||||
#XBPS_DEBUG_PKGS=yes
|
#XBPS_DEBUG_PKGS=yes
|
||||||
|
|
||||||
|
# [OPTIONAL]
|
||||||
|
# Set the package compression format. Available formats:
|
||||||
|
# - gzip
|
||||||
|
# - bzip2
|
||||||
|
# - xz (default)
|
||||||
|
# - none (available since xbps-0.48)
|
||||||
|
#
|
||||||
|
#XBPS_PKG_COMPTYPE=none
|
||||||
|
|
||||||
# [OPTIONAL]
|
# [OPTIONAL]
|
||||||
# Enable or disable global package build options, these options apply
|
# Enable or disable global package build options, these options apply
|
||||||
# to all packages that support the matching options.
|
# to all packages that support the matching options.
|
||||||
|
|
Loading…
Add table
Reference in a new issue