From a075bbec7a220ae7441e86d019b7bb77e60d7495 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Sun, 13 Aug 2023 16:59:46 +0200 Subject: [PATCH] xbps-src: add default build option description Most descriptions already just use this format anyways. --- common/xbps-src/shutils/show.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/xbps-src/shutils/show.sh b/common/xbps-src/shutils/show.sh index 6ae0f4e6d7df2..606396d2b4b1a 100644 --- a/common/xbps-src/shutils/show.sh +++ b/common/xbps-src/shutils/show.sh @@ -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