Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#! /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