description="A System V Release 4.0 curses emulation library." packager="CRUX System Team " maintainer="Lukc " url="http://www.gnu.org/software/ncurses/ncurses.html" depends=() name=ncurses version=5.7 release=1 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz) build () { cd $name-$version; local opts=( --with-install-prefix=$PKG --prefix=$prefix --with-normal --with-shared --without-debug $(use_with ada) ); ./configure ${opts[@]}; make; make install; make distclean; ./configure ${opts[@]} --enable-widec; make; make install; # In my mind, it’s correct to install a such important library in /lib. mkdir $PKG/lib; for i in w ''; do mv $PKG/usr/lib/libncurses$i.so.* $PKG/lib && \ ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so && \ ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so && \ ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so.5; done }