blob: 94d1b3c2fbbce8d30f636336e98ef7420a1aeedf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/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}"
|