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-install/00-libdir.sh

11 lines
267 B
Bash
Raw Normal View History

2024-03-29 08:12:19 +01:00
# This hook creates the wordsize specific libdir symlink.
hook() {
if [ -L ${PKGDESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE} ]; then
return 0
elif [ "${pkgname}" != "base-files" ]; then
vmkdir usr/lib
ln -sf lib ${PKGDESTDIR}/usr/lib${XBPS_TARGET_WORDSIZE}
fi
}