1
0
Fork 0
mirror of https://github.com/xHyroM/void-packages.git synced 2024-11-15 03:08:06 +01:00
void-packages/common/hooks/pre-configure/01-override-config.sh

15 lines
420 B
Bash
Raw Normal View History

2024-03-29 08:12:19 +01:00
# This hook overrides config.sub and config.guess.
hook() {
local _cfgdir="${XBPS_COMMONDIR}/environment/configure/automake"
if [ -z "$build_style" -o "$build_style" = "gnu-configure" ]; then
for f in $(find "${wrksrc}" -type f -name "*config*.sub"); do
cp -f ${_cfgdir}/config.sub ${f}
done
for f in $(find "${wrksrc}" -type f -name "*config*.guess"); do
cp -f ${_cfgdir}/config.guess ${f}
done
fi
}