xbps-src: add default build option description

Most descriptions already just use this format anyways.
This commit is contained in:
Duncaen 2023-08-13 16:59:46 +02:00 committed by classabbyamp
parent 482abcd14a
commit a0d2860dab
1 changed files with 4 additions and 3 deletions

View File

@ -129,15 +129,16 @@ show_pkg_makedepends() {
}
show_pkg_build_options() {
local f opt desc
local f
[ -z "$PKG_BUILD_OPTIONS" ] && return 0
source $XBPS_COMMONDIR/options.description
msg_normal "$pkgver: the following build options are set:\n"
for f in ${PKG_BUILD_OPTIONS}; do
opt="${f#\~}"
eval desc="\${desc_option_${opt}}"
local opt="${f#\~}"
local descref="desc_option_${opt}"
local desc="${!descref-Enable support for $opt}"
if [[ ${f:0:1} == '~' ]]; then
echo " $opt: $desc (OFF)"
else