5 --mandir=/usr
/share
/man \
8 --with-pkg-config-libdir=/usr
/lib
/pkgconfig \
19 make DESTDIR
="$1" install
21 # Force ncurses to link against wide-character ncurses library.
22 for lib
in ncurses form panel menu
; do
23 rm -f "$1/usr/lib/lib${lib}.so"
24 printf '%s\n' "INPUT(-l${lib}w)" > "$1/usr/lib/lib${lib}.so"
25 chmod 755 "$1/usr/lib/lib${lib}.so"
26 ln -sf "lib${lib}w.a" "$1/usr/lib/lib${lib}.a"
29 # Some packages look for libcurses instead of libncurses when building.
30 printf '%s\n' "INPUT(-lncursesw)" > "$1/usr/lib/libcursesw.so"
31 ln -s libncurses.so
"$1/usr/lib/libcurses.so"
34 ln -s ncursesw.pc
"$1/usr/lib/pkgconfig/ncurses.pc"