1
0
mirror of https://github.com/krglaws/MyLFS.git synced 2025-08-03 16:44:38 +00:00
Files
MyLFS-big_bash_script/phase4/findutils.sh
2022-03-26 17:55:10 -04:00

34 lines
606 B
Bash

#!/usr/bin/env bash
# Findutils Stage 6
# ~~~~~~~~~~~~~~~~~
set -e
cd /sources
eval "$(grep FINDUTILS $PACKAGE_LIST)"
PKG_FINDUTILS=$(basename $PKG_FINDUTILS)
tar -xf $PKG_FINDUTILS
cd ${PKG_FINDUTILS%.tar*}
case $(uname -m) in
i?86) TIME_T_32_BIT_OK=yes ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
x86_64) ./configure --prefix=/usr --localstatedir=/var/lib/locate ;;
esac
make
if $RUN_TESTS
then
set +e
chown -R tester .
su tester -c "PATH=$PATH make check" &> $TESTLOG_DIR/findutils.log
set -e
fi
make install
cd /sources
rm -rf ${PKG_FINDUTILS%.tar*}