. "$PROJECTDIR/build/grep/package.env" fetch $GREP_URL cd "$SOURCES" && tar xf grep-$GREP_VERSION.tar.xz && cd grep-$GREP_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 } final() { echo final } case $1 in bootstrap) bootstrap ;; toolchain) toolchain ;; setup) setup ;; final) final ;; esac rm -rf "$SOURCES/grep-$GREP_VERSION"