Created
January 1, 2015 09:08
-
-
Save tani/431aa3fca3e51eb5109d to your computer and use it in GitHub Desktop.
build script for emacs-${version}.pkg
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/sh | |
arch=`arch` | |
package_name='emacs' | |
version='24.4' | |
url="http://ftpmirror.gnu.org/${package_name}/${package_name}-${version}.tar.gz" | |
option='--without-x' | |
build=`mktemp -d ${PWD}/${package_name}-build.XXXXX` | |
mkdir ${build}/src && cd ${build}/src | |
wget ${url} | |
tar --gzip --extract --file ${package_name}-${version}.tar.gz | |
cd ${package_name}-${version} | |
./configure --prefix=${build} ${option} | |
make && make install | |
cd ${build} | |
tar --gzip --create --file \ | |
../${package_name}-${version}-`arch`.pkg . \ | |
--exclude ${build}/src |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment