Adding compilation for liblzma and grub

This commit is contained in:
Marc
2021-12-02 16:28:42 +01:00
parent fbdabd66a5
commit 0c039501db
9 changed files with 74 additions and 22 deletions
Executable
+32
View File
@@ -0,0 +1,32 @@
VER=2.06
if [ "$EUID" = 0 ]
then echo "Please don't run this as root"
exit
fi
if [ ! -d src ]
then
mkdir -p src
cd src
curl https://git.savannah.gnu.org/cgit/grub.git/snapshot/grub-$VER.tar.gz --output grub.tar.gz
tar xvf grub.tar.gz
rm grub.tar.gz
mv grub-$VER/* .
cd -
fi
cd src
#no shure git.sv.gnu.org still exists but i had problems with my proxy anyway
sed -i "s/git\:\/\/git\.sv\.gnu\.org\/gnulib/https\:\/\/git.savannah.gnu.org\/git\/gnulib.git/g" ./bootstrap
./bootstrap
./configure --disable-werror
make -j$(nproc)
DESTDIR=$(pwd)/../../rootfs
sudo make install DESTDIR=$(realpath $DESTDIR)
cd -