mirror of
https://github.com/Gator96100/ProxSpace.git
synced 2025-07-30 03:28:35 -07:00
34 lines
1 KiB
Bash
34 lines
1 KiB
Bash
if [[ -n "$MSYSTEM" ]]; then
|
|
readonly -a UTILS_NAME=('bsdtar'
|
|
'bzip2'
|
|
'bzr'
|
|
'cat'
|
|
'ccache'
|
|
'distcc'
|
|
'git'
|
|
'gpg'
|
|
'gzip'
|
|
'hg'
|
|
'lzip'
|
|
'lzop'
|
|
'openssl'
|
|
'svn'
|
|
'tput'
|
|
'uncompress'
|
|
'xargs'
|
|
'xz'
|
|
'zstd'
|
|
)
|
|
|
|
for wrapper in ${UTILS_NAME[@]}; do
|
|
eval "
|
|
${wrapper}"'() {
|
|
local UTILS_PATH="/usr/bin/"
|
|
if ! type -p ${UTILS_PATH}${FUNCNAME[0]} >/dev/null; then
|
|
error "$(gettext "Cannot find the %s binary required for makepkg.")" "${UTILS_PATH}${FUNCNAME[0]}"
|
|
exit 1
|
|
fi
|
|
${UTILS_PATH}${FUNCNAME[0]} "$@"
|
|
}'
|
|
done
|
|
fi
|