Skip to content

Instantly share code, notes, and snippets.

@dotysan
Created November 6, 2014 03:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dotysan/f955467436b1e530578d to your computer and use it in GitHub Desktop.
Save dotysan/f955467436b1e530578d to your computer and use it in GitHub Desktop.
#! /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