# Exit on error:
set -e

wget http://ftpmirror.gnu.org/ncurses/ncurses-5.9.tar.gz
tar xf ncurses-5.9.tar.gz
cd ncurses-5.9

./configure \
    --prefix=/usr \
    --with-shared \
    --enable-widec \
    --without-debug \
    --without-ada \
    --with-build-cc="gcc -D_GNU_SOURCE" \
    --libdir=/lib

make
make install

cd ..
exit 0
