added tar toolchain step

This commit is contained in:
ag-tsotetsi
2026-02-08 12:06:44 +02:00
parent aefa198475
commit aa7e00a04f
2 changed files with 54 additions and 0 deletions

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

@@ -0,0 +1,47 @@
. "$PROJECTDIR/build/tar/package.env"
fetch $TAR_URL
cd "$SOURCES" && tar xf tar-$TAR_VERSION.tar.xz && cd tar-$TAR_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/tar-$TAR_VERSION"

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

@@ -0,0 +1,7 @@
export TAR_VERSION=1.35
IFS='.' read -r TAR_VERSION_MAJOR TAR_VERSION_MINOR <<< $TAR_VERSION
export TAR_VERSION_MAJOR TAR_VERSION_MINOR
export TAR_URL=https://mirror.ufs.ac.za/gnu/tar/tar-$TAR_VERSION.tar.xz