Skip to content

Instantly share code, notes, and snippets.

@king6cong
Created December 2, 2015 09:22
Show Gist options
  • Save king6cong/1d224dd9b008db46bbdb to your computer and use it in GitHub Desktop.
Save king6cong/1d224dd9b008db46bbdb to your computer and use it in GitHub Desktop.
#!/bin/bash
# Build latest version of Emacs, version management with stow
# OS: Ubuntu 14.04 LTS
# version: 24.5
# Toolkit: lucid
# Warning, use updated version of this script in: https://github.com/favadi/build-emacs
set -e
readonly version="24.5"
# install dependencies
# sudo apt-get install -y stow build-essential libx11-dev xaw3dg-dev \
# libjpeg-dev libpng12-dev libgif-dev libtiff4-dev libncurses5-dev \
# libxft-dev librsvg2-dev libmagickcore-dev libmagick++-dev \
# libxml2-dev libgpm-dev libghc-gconf-dev libotf-dev libm17n-dev \
# libgnutls-dev
# # download source package
# if [[ ! -d emacs-"$version" ]]; then
# wget http://ftp.gnu.org/gnu/emacs/emacs-"$version".tar.xz
# tar xvf emacs-"$version".tar.xz
# fi
# buil and install
dest=~/bin/emacs-"$version"/
mkdir -p $dest
cd emacs-"$version"
./configure \
--with-xft \
--with-x-toolkit=lucid --prefix=$dest
make
make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment