. "$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"