hooks/prepare-32bit: in full mode also preserve usr/lib, moving it to usr/lib32.

This commit is contained in:
Juan RP 2014-05-28 12:41:25 +02:00
parent ab87c5b360
commit 418aa2f9d3

View file

@ -62,7 +62,13 @@ hook() {
mkdir -p ${destdir32} mkdir -p ${destdir32}
cp -a ${PKGDESTDIR}/* ${destdir32}/ cp -a ${PKGDESTDIR}/* ${destdir32}/
# remove symlink # remove symlink
rm ${destdir32}/usr/lib32 if [ -h ${destdir32}/usr/lib32 ]; then
rm ${destdir32}/usr/lib32
fi
# if /usr/lib dir exists move it to lib32.
if [ -d ${destdir32}/usr/lib ]; then
mv ${destdir32}/usr/lib ${destdir32}/usr/lib32
fi
fi fi
if [ ! -d ${destdir32} ]; then if [ ! -d ${destdir32} ]; then
return return