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
1 changed files with 1 additions and 2 deletions

View File

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