termux_step_configure_autotools: Improve `*config` pickup
to exclude binaries such as `pkg-config`.
This commit is contained in:
parent
1def3f3009
commit
b8c4535b55
|
@ -36,7 +36,9 @@ termux_step_configure_autotools() {
|
||||||
# Some packages provides a $PKG-config script which some configure scripts pickup instead of pkg-config:
|
# Some packages provides a $PKG-config script which some configure scripts pickup instead of pkg-config:
|
||||||
mkdir "$TERMUX_PKG_TMPDIR/config-scripts"
|
mkdir "$TERMUX_PKG_TMPDIR/config-scripts"
|
||||||
for f in $TERMUX_PREFIX/bin/*config; do
|
for f in $TERMUX_PREFIX/bin/*config; do
|
||||||
test -f "$f" && cp "$f" "$TERMUX_PKG_TMPDIR/config-scripts"
|
if [[ -f "$f" && "$(head -c 4 "$f")" != "$(echo -ne '\0177ELF')" ]]; then
|
||||||
|
cp "$f" "$TERMUX_PKG_TMPDIR/config-scripts"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
export PATH=$TERMUX_PKG_TMPDIR/config-scripts:$PATH
|
export PATH=$TERMUX_PKG_TMPDIR/config-scripts:$PATH
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue