added findutils toolchain step

This commit is contained in:
ag-tsotetsi
2026-02-08 11:52:18 +02:00
parent cb03f3810e
commit 01eea68c24
2 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,48 @@
. "$PROJECTDIR/build/findutils/package.env"
fetch $FINDUTILS_URL
cd "$SOURCES" && tar xf findutils-$FINDUTILS_VERSION.tar.xz && cd findutils-$FINDUTILS_VERSION
bootstrap() {
echo bootstrap
}
toolchain() {
./configure \
--prefix=/usr \
--localstatedir=/var/lib/locate \
--host=$TARGET \
--build=$(build-aux/config.guess) > /dev/null
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
}
setup() {
echo setup
}
final() {
echo final
}
case $1 in
bootstrap)
bootstrap
;;
toolchain)
toolchain
;;
setup)
setup
;;
final)
final
;;
esac
rm -rf "$SOURCES/findutils-$FINDUTILS_VERSION"

View File

@@ -0,0 +1,7 @@
export FINDUTILS_VERSION=4.10.0
IFS='.' read -r FINDUTILS_VERSION_MAJOR FINDUTILS_VERSION_MINOR FINDUTILS_VERSION_PATCH <<< $FINDUTILS_VERSION
export FINDUTILS_VERSION_MAJOR FINDUTILS_VERSION_MINOR FINDUTILS_VERSION_PATCH
export FINDUTILS_URL=https://mirror.ufs.ac.za/gnu/findutils/findutils-$FINDUTILS_VERSION.tar.xz