common/00-libdir: only create lib{32,64} symlink if not exists

This commit is contained in:
Đoàn Trần Công Danh 2021-02-08 06:47:45 +07:00 committed by Daniel Kolesa
parent 75603afb51
commit 8f8c5789b9

View file

@ -1,7 +1,9 @@
# This hook creates the wordsize specific libdir symlink.
hook() {
if [ "${pkgname}" != "base-files" ]; then
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