Created
November 6, 2014 03:13
-
-
Save dotysan/f955467436b1e530578d to your computer and use it in GitHub Desktop.
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/bash -ex | |
# | |
# crib notes on how to bootstrap midnight commander single-user | |
# | |
lf=libffi-3.1 | |
gl=glib-2.43.0 | |
sl=slang-2.3.0 | |
mc=mc-4.8.13 | |
mkdir -p $HOME/src | |
cd $HOME/src | |
dobuild() { | |
wget -N $4/$1.tar.$3 | |
rm -fr $1 | |
tar x${2}f $1.tar.$3 | |
pushd $1 | |
./configure --prefix=$HOME $5 | |
make -j | |
make install | |
popd | |
} | |
dobuild $lf z gz ftp://sourceware.org/pub/libffi | |
dobuild $gl J xz http://ftp.gnome.org/pub/gnome/sources/glib/2.43 PKG_CONFIG_PATH=$HOME/lib/pkgconfig | |
dobuild $sl j bz2 http://www.jedsoft.org/releases/slang | |
dobuild $mc J xz http://ftp.midnight-commander.org PKG_CONFIG_PATH=$HOME/lib/pkgconfig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment