#!/bin/bash
set -e

# shellcheck disable=SC2016
./configure --prefix=/usr \
            --host="${LFS_TGT}" \
            --build="$(build-aux/config.guess)" &&

make &&
make DESTDIR="${LFS}" -j1 install &&

mv -v "${LFS}"/usr/bin/find "${LFS}"/bin &&
sed -i 's|find:=${BINDIR}|find:=/bin|' "${LFS}"/usr/bin/updatedb