added gzip toolchain step

This commit is contained in:
ag-tsotetsi
2026-02-08 11:58:20 +02:00
parent f898735c15
commit a5283ffcae
2 changed files with 49 additions and 0 deletions

42
build/gzip/build.bash Normal file
View File

@@ -0,0 +1,42 @@
. "$PROJECTDIR/build/gzip/package.env"
fetch $GZIP_URL
cd "$SOURCES" && tar xf gzip-$GZIP_VERSION.tar.xz && cd gzip-$GZIP_VERSION
bootstrap() {
echo bootstrap
}
toolchain() {
./configure \
--prefix=/usr \
--host=$TARGET > /dev/null
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
}
final() {
echo final
}
case $1 in
bootstrap)
bootstrap
;;
toolchain)
toolchain
;;
setup)
setup
;;
final)
final
;;
esac
rm -rf "$SOURCES/gzip-$GZIP_VERSION"

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

@@ -0,0 +1,7 @@
export GZIP_VERSION=1.14
IFS='.' read -r GZIP_VERSION_MAJOR GZIP_VERSION_MINOR <<< $GZIP_VERSION
export GZIP_VERSION_MAJOR GZIP_VERSION_MINOR
export GZIP_URL=https://mirror.ufs.ac.za/gnu/gzip/gzip-$GZIP_VERSION.tar.xz