aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/ncurses.sh
blob: a63a617ea29a025808f8915ca89daea06cb8e186 (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
#!/bin/bash
set -e

sed -i s/mawk// configure &&

mkdir build
pushd build > /dev/null || exit 1
    ../configure &&
    make -C include &&
    make -C progs tic &&
popd > /dev/null || exit 1

./configure --prefix=/usr \
            --host="${LFS_TGT}" \
            --build="$(./config.guess)" \
            --mandir=/usr/share/man \
            --with-manpage-format=normal \
            --with-shared \
            --without-debug \
            --without-ada \
            --without-normal \
            --enable-widec &&
make &&
make DESTDIR="${LFS}" TIC_PATH="$(pwd)"/build/progs/tic -j1 install &&
echo "INPUT(-lncursesw)" > "${LFS}"/usr/lib/libncurses.so &&
mv -v "${LFS}"/usr/lib/libncursesw.so.6* "${LFS}"/lib &&
ln -sfv ../../lib/"$(readlink "${LFS}"/usr/lib/libncursesw.so)" "${LFS}"/usr/lib/libncursesw.so