build_ncurses() { HERE=`pwd` NAME=ncurses VER=5.9 PKGPATH=$1 export LDFLAGS="-L$PKGPATH/lib:/apps/gtk2/lib" export CPPFLAGS="-I$PKGPATH/include -I/apps/gtk2/include" export PATH="$PKGPATH/bin:/apps/gtk2/bin:$PATH" export PKG_CONFIG_PATH="$PKGPATH/lib/pkgconfig:/apps/gtk2/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH" tar xvf ncurses-5.9.tar.gz|| exit 1 cd ncurses-5.9 || exit 1 ./configure --prefix="$PKGPATH" --bindir="$PKGPATH"/localbin --with-shared --with-ncurses-headers="$PKGPATH"/include --with-normal --without-debug --without-ada --without-tests || exit 1 make || exit 1 make install || exit 1 cd "$PKGPATH"/lib ln -s libncurses.so.5.9 libtinfo.so.5 ln -s libncurses.so.5.9 libcurses.so cd "$HERE" touch "$TMPDIR"/ncurses }