Add more dependencies to emacs installation script

This commit is contained in:
tar 2024-07-19 20:05:13 +02:00
parent 5e07b8ad42
commit 4625e9b40e
1 changed files with 40 additions and 30 deletions

70
emacs-29-install-debian12.sh Normal file → Executable file
View File

@ -23,6 +23,7 @@
#############################################################
LOG_DIR="/home/${SUDO_USER}"
LOG="${LOG_DIR}/log.txt"
PREFIX="/home/${SUDO_USER}/.local"
#############################################################
# HELPER FUNCTIONS
@ -86,32 +87,36 @@ install_emacs_build_dependencies() {
info "$step_name"
apt install -y \
build-essential \
autoconf \
automake \
texinfo \
libtool \
libgtk-3-dev \
libgtk2.0-dev \
libxpm-dev \
libjpeg-dev \
libgif-dev \
libtiff5-dev \
libpng-dev \
librsvg2-dev \
libgnutls28-dev \
libncurses-dev \
libxml2-dev \
libgpm-dev \
libdbus-1-dev \
libotf-dev \
libm17n-dev \
libmagickcore-dev \
libmagickwand-dev \
libglib2.0-dev \
libgirepository1.0-dev
build-essential \
autoconf \
automake \
texinfo \
libtool \
libgtk-3-dev \
libgtk2.0-dev \
libxpm-dev \
libjpeg-dev \
libgif-dev \
libtiff5-dev \
libpng-dev \
librsvg2-dev \
libgnutls28-dev \
libncurses-dev \
libxml2-dev \
libgpm-dev \
libdbus-1-dev \
libotf-dev \
libm17n-dev \
libmagickcore-dev \
libmagickwand-dev \
libglib2.0-dev \
libgirepository1.0-dev \
gir1.2-gtk-3.0 \
libgtk-3-dev \
libacl1-dev \
libwebkit2gtk-4.1-dev
[[ $? -gt 0 ]] && { error "$step_name failed, stopping now"; exit 1; }
info "done"
@ -130,7 +135,7 @@ clone_and_build_tree_sitter() {
git clone https://github.com/tree-sitter/tree-sitter.git
cd tree-sitter
make
make -j$(nproc)
make install
# if emacs fails to build becasue of tree-sitter not found
@ -225,9 +230,14 @@ clone_and_build_emacs() {
--with-tree-sitter \
--with-imagemagick \
--with-rsvg \
--with-xwidgets
make
--with-xwidgets \
--with-pgtk \
--with-x-toolkit=gtk3 \
--disable-silent-rules \
--exec_prefix=$PREFIX \
--prefix=$PREFIX
make -j$(nproc)
make install
[[ $? -gt 0 ]] && { error "$step_name failed, stopping now"; exit 1; }