void-packages/common/hooks/pre-install/00-lib32.sh

10 lines
220 B
Bash

# This hook creates the /usr/lib32 symlink for 32-bit systems.
hook() {
if [ "$XBPS_TARGET_WORDSIZE" = "32" ] && \
[ "${pkgname}" != "base-files" ]; then
vmkdir usr/lib
ln -sf lib ${PKGDESTDIR}/usr/lib32
fi
}