mirror of
https://git.adityakumar.xyz/lfs-scripts.git
synced 2024-12-23 07:42:53 +00:00
45 lines
908 B
Bash
45 lines
908 B
Bash
#!/bin/bash
|
|
|
|
cd $LFS/sources
|
|
tar xf ncurses-6.3.tar.gz
|
|
cd ncurses-6.3
|
|
|
|
sed -i s/mawk// configure
|
|
|
|
mkdir build
|
|
pushd build
|
|
../configure
|
|
make -C include
|
|
make -C progs tic
|
|
popd
|
|
|
|
./configure --prefix=/usr \
|
|
--host=$LFS_TGT \
|
|
--build=$(./config.guess) \
|
|
--mandir=/usr/share/man \
|
|
--with-manpage-format=normal \
|
|
--with-shared \
|
|
--without-normal \
|
|
--with-cxx-shared \
|
|
--without-debug \
|
|
--without-ada \
|
|
--disable-stripping \
|
|
--enable-widec
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
make -j5
|
|
|
|
if [ $? -ne 0 ]
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
make DESTDIR=$LFS TIC_PATH=$(pwd)/build/progs/tic install
|
|
echo "INPUT(-lncursesw)" > $LFS/usr/lib/libncurses.so
|
|
|
|
cd $LFS/sources
|
|
rm -rf ncurses-6.3
|