mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
common.sh: allow individual build options for packages with dot in name
This commit is contained in:
parent
723730029f
commit
174f6b522b
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue