shutils/build_dependencies.sh: print "with" before build style/helper names

Messages like "building [rust] for <platform>" could lead to mild panic as they
might be read as "building <large toolchain> on your laptop".

Simply adding "with" before the style/helpers should solve that.

It works for build_style, build_helper, both, and none.

=> ircdog-0.4.0_2: building with [go] for x86_64...
=> firefox-111.0.1_1: building with [rust] for x86_64...
=> riff-2.23.2_1: building with [cargo] [rust] for x86_64...
=> discord-0.0.26_1: building for x86_64...
This commit is contained in:
0x5c 2023-04-07 07:40:04 -04:00 committed by classabbyamp
parent c10e805661
commit 97724fb539
1 changed files with 6 additions and 1 deletions

View File

@ -138,7 +138,12 @@ install_pkg_deps() {
[ -z "$pkgname" ] && return 2
[ -z "$XBPS_CHECK_PKGS" ] && unset checkdepends
[[ $build_style ]] && style=" [$build_style]"
if [[ $build_style ]] || [[ $build_helper ]]; then
style=" with"
fi
[[ $build_style ]] && style+=" [$build_style]"
for s in $build_helper; do
style+=" [$s]"