ncurses-6.1

Taille du paquet 6.9M
Somme de contrĂ´le SHA256 12c2806608b1c428375730d06e63bff3a3aa7cb24113ba6ec50606f27f164aae
Estimation du temps de construction 164.067 secondes
TIMEFORMAT='(BUSYBOX) Compilation de ncurses-6.1 en %R seconds ...'
time {
wget http://ftp.gnu.org/gnu/ncurses/ncurses-6.1.tar.gz -O ${LFS}/download/ncurses-6.1.tar.gz --no-check-certificate &&
md5sum -c <<<" 98c889aaf8d23910d2b92d65be2e737a ${LFS}/download/ncurses-6.1.tar.gz" &&
rm -Rf ${LFS}/src/ncurses-6.1 &&
tar xzf ${LFS}/download/ncurses-6.1.tar.gz -C ${LFS}/src &&
cd ${LFS}/src/ncurses-6.1 &&
sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in &&
./configure --prefix=/usr                       --mandir=/usr/share/man             --with-shared                       --without-debug                     --without-normal                    --enable-pc-files                   --enable-widec &&
make &&
make DESTDIR=$PWD/_pkg install &&
mkdir -pv _pkg/{lib,lib64,usr/lib/pkgconfig,usr/lib64} &&
mv -v _pkg/usr/lib/libncursesw.so.6* _pkg/lib &&
ln -sfv ../../lib/../../lib/libncursesw.so.6 _pkg/usr/lib/libncursesw.so &&
for lib in ncurses form panel menu ; do
    rm -vf                    _pkg/usr/lib/lib.so
    echo "INPUT(-lw)" > _pkg/usr/lib/lib.so
    ln -sfv ${lib}w.pc        _pkg/usr/lib/pkgconfig/.pc
done &&
rm -vf                     _pkg/usr/lib/libcursesw.so &&
echo "INPUT(-lncursesw)" > _pkg/usr/lib/libcursesw.so &&
ln -sfv libncurses.so      _pkg/usr/lib/libcurses.so &&
ln -sfv libncursesw.a      _pkg/usr/lib/libcurses.a &&
make distclean &&
./configure --prefix=/usr                --with-shared                --without-normal             --without-debug              --without-cxx-binding             --with-abi-version=5 &&
make DESTDIR=$PWD/_pkg sources libs &&
cp -av lib/lib*.so.5* _pkg/usr/lib &&
strip -v _pkg/usr/bin/*
strip -v _pkg/usr/lib/*
tar -C _pkg/ -cvf ${LFS}/pkg/ncurses-6.1.tar.gz ./ &&
cd "${LFS}/"
}