build_dialog() { HERE=`pwd` NAME=dialog VER=5.9 . ./ncurses-sc.inc || exit 1 PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib" export CPPFLAGS="-I$PKGPATH/include" export PATH="$PKGPATH/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" if [ ! -f "$TMPDIR"/ncurses ]; then build_ncurses "$PKGPATH" || exit 1 fi tar xvf dialog_1.1-20111020.orig.tar.gz || exit 1 cd dialog_1.1-20111020 || exit 1 ./configure --prefix="$PKGPATH" || exit 1 make || exit 1 make install || exit 1 cd "$HERE" touch "$TMPDIR"/dialog }