Created
June 2, 2022 08:10
-
-
Save veer66/e6266e9c065adeab8a1f85faae2ffac4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export PKG_CONFIG_PATH=$HOME/lib64/pkgconfig:$HOME/lib/pkgconfig | |
export LD_RUN_PATH=$HOME/lib:$HOME/lib64 | |
export LD_LIBRARY_PATH=$HOME/lib:$HOME/lib64 | |
export LDFLAGS="-L$HOME/lib -L$HOME/lib64" | |
rm -rf libunistring-1.0 libidn2-2.3.2 nettle-3.6 gmp-6.2.1 emacs-28.1 | |
curl https://ftp.gnu.org/gnu/libunistring/libunistring-1.0.tar.gz | tar -xzvf - && \ | |
pushd libunistring-1.0 && \ | |
./configure --prefix=$HOME && \ | |
make -j `nproc` && \ | |
make install && \ | |
popd || exit 1 | |
curl https://ftp.gnu.org/gnu/libidn/libidn2-2.3.2.tar.gz | tar -xzvf - && \ | |
pushd libidn2-2.3.2 && \ | |
./configure --prefix=$HOME && \ | |
make -j `nproc` && \ | |
make install && \ | |
popd || exit 1 | |
curl https://ftp.gnu.org/gnu/nettle/nettle-3.6.tar.gz | tar xzvf - && \ | |
pushd nettle-3.6 && \ | |
./configure --prefix=$HOME --enable-mini-gmp && \ | |
make -j `nproc` && \ | |
make install && \ | |
popd || exit 1 | |
curl https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/gnutls-3.7.6.tar.xz | tar xJvf - && \ | |
pushd gnutls-3.7.6 && \ | |
./configure --prefix=$HOME && \ | |
make -j `nproc` && \ | |
make install && \ | |
cd .. || exit 1 | |
curl http://ftp.gnu.org/pub/gnu/emacs/emacs-28.1.tar.gz | tar -xzvf - && | |
pushd emacs-28.1 && \ | |
./configure --prefix=$HOME --with-x-toolkit=no --with-xpm=no --with-jpeg=no --with-jpeg=no --with-gif=no --with-tiff=no --with-png=no && \ | |
make -j `nproc` && \ | |
make install && \ | |
cd .. || exit 1 | |
echo | |
echo | |
echo "Emacs 28.1 must be ready!" | |
echo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment