Adding compilation for liblzma and grub
This commit is contained in:
Executable
+32
@@ -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 -
|
||||
|
||||
Reference in New Issue
Block a user