Command explanations
patch -Np1 -i ../ncurses-&ncurses-version;-patch:
This patch fixes a compile problem with GCC-3.2 because Ncurses uses
constructions that are not valid in ANSI C++ and don't compile with
recent GCC versions that conform to the standard.
--with-shared: This enables the build of the
shared ncurses library files.
chmod 755 *.5.2: Shared libraries should be
executable. Ncurses's install routine doesn't set the permissions
properly so we do it manually instead.
ln -sf libncurses.a libcurses.a: Some
programs try to link using -lcurses instead of -lncurses. This symlink
ensures that such programs will link without errors.