repo/curses-lib/build

63 lines
3 KiB
Text
Raw Normal View History

2021-07-12 23:34:41 +03:00
wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz
tar -xf ncurses-6.2.tar.gz
cd ncurses-6.2
2021-07-12 23:34:41 +03:00
sed -i s/mawk// configure
mkdir build
pushd build
../configure
2021-07-14 10:05:27 +03:00
make -C in`clude
2021-07-12 23:34:41 +03:00
make -C progs tic
popd
2021-07-14 10:05:27 +03:00
./configure --prefix=/usr --build=$(./config.guess) --mandir=/usr/share/man --with-manpage-format=normal --with-shared --without-debug --without-ada --without-normal --enable-widec --with-pkg-config-libdir=/usr/lib/ncurses/6_2/lib/pkgconfig
2021-07-12 23:34:41 +03:00
make
2021-07-14 17:32:54 +03:00
<<<<<<< HEAD
2021-07-14 10:05:27 +03:00
make DESTDIR="$1" install
ln -s $1/usr/lib/ncurses/6_2/bin/captoinfo $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/clear $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/infocmp $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/infotocap $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/ncurses6-config $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/reset $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/tabs $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/tic $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/toe $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/tput $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/bin/tset $1/usr/bin/
ln -s $1/usr/lib/ncurses/6_2/include/ncurses $1/usr/include
ln -s $1/usr/lib/ncurses/6_2/lib/libform.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libform_g.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libform.so $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libform.so.6 $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libform.so.6.1 $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libmenu.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libmenu_g.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libmenu.so $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libmenu.so.6 $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libmenu.so.6.1 $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libncurses++.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libncurses.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libncurses++_g.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libncurses_g.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libncurses.so $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libncurses.so.6 $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libncurses.so.6.1 $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libpanel.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libpanel_g.a $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libpanel.so $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libpanel.so.6 $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/libpanel.so.6.1 $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/terminfo $1/usr/lib/
ln -s $1/usr/lib/ncurses/6_2/lib/pkgconfig/form.pc $1/usr/lib/pkgconfig/
ln -s $1/usr/lib/ncurses/6_2/lib/pkgconfig/menu.pc $1/usr/lib/pkgconfig/
ln -s $1/usr/lib/ncurses/6_2/lib/pkgconfig/ncurses++.pc $1/usr/lib/pkgconfig/
ln -s $1/usr/lib/ncurses/6_2/lib/pkgconfig/ncurses.pc $1/usr/lib/pkgconfig/
ln -s $1/usr/lib/ncurses/6_2/lib/pkgconfig/panel.pc $1/usr/lib/pkgconfig/
2021-07-14 17:32:54 +03:00
=======
2021-07-12 23:34:41 +03:00
make install DESTDIR="$1"
cp libncursesw.so /lib/libncursesw.so
ln -s /lib/libncursesw.so /lib/libncurses.so
2021-07-14 17:32:54 +03:00
>>>>>>> e1d9880bd99d6d808dc9beccdf707f6d87bedae6
2021-07-12 23:34:41 +03:00
echo "INPUT(-lncursesw)" > $1/usr/lib/libncurses.so