# Template build file for 'ncurses'.
pkgname=ncurses
version=5.7
distfiles="http://ftp.gnu.org/pub/gnu/ncurses/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--with-shared --without-debug CFLAGS=-fPIC"
short_desc="A System V Release 4.0 curses emulation library"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=0a9bdea5c7de8ded5c9327ed642915f2cc380753f12d4ad120ef7da3ea3498f4
long_desc="
 The ncurses (new curses) library is a freeware emulation of System V Release
 4.0 curses. It uses terminfo format, supports pads and color and multiple
 highlights and forms characters and function-key mapping, and has all the
 other SYSV-curses enhancements over BSD curses. The distribution includes
 the library and support utilities, including a terminfo compiler tic, a 
 ecompiler infocmp, clear, tput, tset, and a termcap conversion tool captoinfo.
 Full manual pages are provided for the library and tools."

base_chroot=yes
subpackages="ncurses-base ncurses-devel ncurses-libs ncurses-term"
Add_dependency run glibc
Add_dependency run ncurses-libs

post_install()
{
	# Remove broken symlinks.
	rm -f ${DESTDIR}/usr/lib/lib*.so
}
