#!/bin/sh . ./.vars VERSION=2.02 cd $build_dir if ! [ -d "${build_dir}/grub-$VERSION" ] ; then xz -dc < "${dist_dir}/grub-$VERSION.tar.xz" | tar -xvf - fi cd "grub-$VERSION" export DESTDIR="$prefix" export LDFLAGS="-static" export CFLAGS="-static" export CPPFLAGS="$CFLAGS" ./configure \ --prefix='/usr' \ --sysconfdir='/etc' \ --host=$BUILD_TGT \ --disable-werror # Why in the fuck do I have to add disable -Werror? # Is GRUB really *that* shit? make -j$(nproc) make install