repo/curses-lib/build

18 lines
553 B
Text
Executable file

wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz
tar -xf ncurses-6.2.tar.gz
cd ncurses-6.2
sed -i s/mawk// configure
mkdir build
pushd build
../configure
make -C include
make -C progs tic
popd
./configure --prefix=/usr --build=$(./config.guess) --mandir=/usr/share/man --with-manpage-format=normal --with-shared --without-debug --without-ada --without-normal --enable-widec
make
make install DESTDIR="$1"
cp libncursesw.so /lib/libncursesw.so
ln -s /lib/libncursesw.so /lib/libncurses.so
echo "INPUT(-lncursesw)" > $1/usr/lib/libncurses.so