common.sh: allow individual build options for packages with dot in name

This commit is contained in:
Piotr Wójcik 2020-02-22 18:26:38 +01:00
parent 723730029f
commit 174f6b522b

View file

@ -162,8 +162,7 @@ set_build_options() {
fi
for f in ${build_options}; do
_pkgname=${pkgname//\-/\_}
_pkgname=${_pkgname//\+/\_}
_pkgname=${pkgname//[^A-Za-z0-9_]/_}
eval pkgopts="\$XBPS_PKG_OPTIONS_${_pkgname}"
if [ -z "$pkgopts" -o "$pkgopts" = "" ]; then
pkgopts=${XBPS_PKG_OPTIONS}