added diffutils toolchain step

This commit is contained in:
ag-tsotetsi
2026-02-08 11:47:21 +02:00
parent 038b79a2c1
commit f73aa061a7
2 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,47 @@
. "$PROJECTDIR/build/diffutils/package.env"
fetch $DIFFUTILS_URL
cd "$SOURCES" && tar xf diffutils-$DIFFUTILS_VERSION.tar.xz && cd diffutils-$DIFFUTILS_VERSION
bootstrap() {
echo bootstrap
}
toolchain() {
./configure \
--prefix=/usr \
--host=$TARGET \
gl_cv_func_strcasecmp_works=y \
--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/diffutils-$DIFFUTILS_VERSION"

View File

@@ -0,0 +1,7 @@
export DIFFUTILS_VERSION=3.12
IFS='.' read -r DIFFUTILS_VERSION_MAJOR DIFFUTILS_VERSION_MINOR <<< $DIFFUTILS_VERSION
export DIFFUTILS_VERSION_MAJOR DIFFUTILS_VERSION_MINOR
export DIFFUTILS_URL=https://mirror.ufs.ac.za/gnu/diffutils/diffutils-$DIFFUTILS_VERSION.tar.xz