added sed toolchain step

This commit is contained in:
ag-tsotetsi
2026-02-08 12:04:27 +02:00
parent 86df2512be
commit aefa198475
2 changed files with 54 additions and 0 deletions

47
build/sed/build.bash Normal file
View File

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

7
build/sed/package.env Normal file
View File

@@ -0,0 +1,7 @@
export SED_VERSION=4.9
IFS='.' read -r SED_VERSION_MAJOR SED_VERSION_MINOR <<< $SED_VERSION
export SED_VERSION_MAJOR SED_VERSION_MINOR
export SED_URL=https://mirror.ufs.ac.za/gnu/sed/sed-$SED_VERSION.tar.xz