From 4625e9b40e295b1463620baae9426e7b81fa2d8b Mon Sep 17 00:00:00 2001 From: tar Date: Fri, 19 Jul 2024 20:05:13 +0200 Subject: [PATCH] Add more dependencies to emacs installation script --- emacs-29-install-debian12.sh | 70 ++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 30 deletions(-) mode change 100644 => 100755 emacs-29-install-debian12.sh diff --git a/emacs-29-install-debian12.sh b/emacs-29-install-debian12.sh old mode 100644 new mode 100755 index 08eda29..db36fcd --- a/emacs-29-install-debian12.sh +++ b/emacs-29-install-debian12.sh @@ -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; }