hooks/post-install/06-prepare-32bit.sh: return early if destdir32 does not exist; only for x86.
This commit is contained in:
parent
d1b0883768
commit
772e938938
1 changed files with 5 additions and 1 deletions
|
@ -12,7 +12,7 @@ hook() {
|
|||
return
|
||||
fi
|
||||
# This hook will only work when building for x86.
|
||||
if [ "$XBPS_MACHINE" != "i686" ]; then
|
||||
if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then
|
||||
return
|
||||
fi
|
||||
# Ignore noarch pkgs.
|
||||
|
@ -43,6 +43,10 @@ hook() {
|
|||
rmdir --ignore-fail-on-non-empty -p "$f" &>/dev/null
|
||||
done
|
||||
|
||||
if [ ! -d ${destdir32} ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
# Switch pkg-config files to lib32.
|
||||
if [ -d ${destdir32}/usr/lib32/pkgconfig ]; then
|
||||
sed -e 's,/usr/lib,/usr/lib32,g' \
|
||||
|
|
Loading…
Reference in a new issue