diff options
Diffstat (limited to 'chapter8/ncurses.sh')
-rw-r--r-- | chapter8/ncurses.sh | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chapter8/ncurses.sh b/chapter8/ncurses.sh index c7ba368..9d3ebbc 100644 --- a/chapter8/ncurses.sh +++ b/chapter8/ncurses.sh @@ -1,3 +1,37 @@ +<<<<<<< HEAD +#!/bin/bash
+set -e
+
+./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --with-shared \
+ --without-debug \
+ --without-normal \
+ --enable-pc-files \
+ --enable-widec \
+ --with-termlib \
+ --disable-tic-depends &&
+
+make &&
+make -j1 install &&
+
+mv -v /usr/lib/libncursesw.so.6* /lib &&
+ln -sfv ../../lib/"$(readlink /usr/lib/libncursesw.so)" /usr/lib/libncursesw.so &&
+for lib in ncurses form panel menu tinfo ; do
+ rm -vf /usr/lib/lib"${lib}".so &&
+ echo "INPUT(-l${lib}w)" > /usr/lib/lib"${lib}".so &&
+ ln -sfv "${lib}"w.pc /usr/lib/pkgconfig/"${lib}".pc
+done
+
+rm -vf /usr/lib/libcursesw.so &&
+echo "INPUT(-lncursesw)" > /usr/lib/libcursesw.so &&
+ln -sfv libncurses.so /usr/lib/libcurses.so &&
+
+rm -fv /usr/lib/libncurses++w.a &&
+
+mkdir -v /usr/share/doc/ncurses-"${VERSION}" &&
+cp -v -R doc/* /usr/share/doc/ncurses-"${VERSION}"
+======= #!/bin/bash set -e @@ -28,3 +62,4 @@ rm -fv /usr/lib/libncurses++w.a && mkdir -v /usr/share/doc/ncurses-"${VERSION}" && cp -v -R doc/* /usr/share/doc/ncurses-"${VERSION}" +>>>>>>> 6132c19762b7d74ba7ad06e291b6401c632bbc28 |