Created
January 1, 2015 09:19
-
-
Save tani/e59d40bc365f18a2a110 to your computer and use it in GitHub Desktop.
build script for sbcl 64bit
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='x86-64' | |
package_name='sbcl' | |
version='1.2.6' | |
url="http://ftp.jaist.ac.jp/pub/sourceforge/s/sb/sbcl/sbcl/${version}/${package_name}-${version}-${arch}-linux-binary.tar.bz2" | |
option='' | |
build=`mktemp -d ${PWD}/${package_name}-build.XXXXX` | |
mkdir ${build}/src && cd ${build}/src | |
wget ${url} | |
tar --bzip2 --extract \ | |
--file ${package_name}-${version}-${arch}-linux-binary.tar.bz2 | |
cd ${package_name}-${version}-${arch}-linux | |
unset SBCL_HOME && export INSTALL_ROOT=${build} | |
sh ./install.sh | |
cd ${build} | |
tar --gzip --create --file \ | |
../${package_name}-${version}-`arch`.pkg . \ | |
--exclude ${build}/src | |
echo 'echo "export SBCL_HOME=$HOME/.stow/lib/sbcl" >> $HOME/.bashrc' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment