added gzip toolchain step
This commit is contained in:
42
build/gzip/build.bash
Normal file
42
build/gzip/build.bash
Normal 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
7
build/gzip/package.env
Normal 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
|
||||||
|
|
||||||
Reference in New Issue
Block a user