common.sh: allow individual build options for packages with dot in name
This commit is contained in:
parent
723730029f
commit
174f6b522b
|
@ -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}
|
||||||
|
|
Loading…
Reference in New Issue