<<<<<<< HEAD
#!/bin/bash
set -e

mkdir build
pushd build > /dev/null || exit 1

../configure --disable-bzlib \
             --disable-libseccomp \
             --disable-xzlib \
             --disable-zlib &&
make &&
popd > /dev/null || exit 1

./configure --prefix=/usr \
            --host="${LFS_TGT}" \
            --build="$(./config.guess)" &&
make FILE_COMPILE="$(pwd)"/build/src/file &&
make DESTDIR="${LFS}" -j1 install &&

mv -v "${LFS}"/usr/lib/libmagic.so.* "${LFS}"/lib &&
ln -sfv ../../lib/"$(readlink /usr/lib/libmagic.so)" "${LFS}"/usr/lib/libmagic.so
=======
#!/bin/bash
set -e

mkdir build
pushd build > /dev/null || exit 1

../configure --disable-bzlib \
             --disable-libseccomp \
             --disable-xzlib \
             --disable-zlib &&
make &&
popd > /dev/null || exit 1

./configure --prefix=/usr \
            --host="${LFS_TGT}" \
            --build="$(./config.guess)" &&
make FILE_COMPILE="$(pwd)"/build/src/file &&
make DESTDIR="${LFS}" -j1 install &&

mv -v "${LFS}"/usr/lib/libmagic.so.* "${LFS}"/lib &&
ln -sfv ../../lib/"$(readlink "${LFS}"/usr/lib/libmagic.so)" "${LFS}"/usr/lib/libmagic.so
>>>>>>> 6132c19762b7d74ba7ad06e291b6401c632bbc28