repo/curses-lib/build
2021-08-28 10:05:07 +02:00

51 lines
2.1 KiB
Text
Executable file

sed -i s/mawk// configure
mkdir build
pushd build
../configure
make -C include
make -C progs tic
popd
./configure --prefix=/ --build=$(./config.guess) --mandir=//share/man --with-manpage-format=normal --with-shared --without-debug --without-ada --without-normal --enable-widec --with-pkg-config-libdir=//lib/ncurses//lib/pkgconfig
make
make DESTDIR="$1" install
ln -s lib/ncurses/bin/captoinfo $1/bin/
ln -s lib/ncurses/bin/clear $1//bin
ln -s lib/ncurses/bin/infocmp $1//bin/
ln -s lib/ncurses/bin/infotocap $1//bin/
ln -s lib/ncurses/bin/ncurses6-config $1//bin/
ln -s lib/ncurses/bin/reset $1//bin/
ln -s lib/ncurses/bin/tabs $1//bin/
ln -s lib/ncurses/bin/tic $1//bin/
ln -s lib/ncurses/bin/toe $1//bin/
ln -s lib/ncurses/bin/tput $1//bin/
ln -s lib/ncurses/bin/tset $1//bin/
ln -s lib/ncurses/include/ncurses $1//include
ln -s lib/ncurses/lib/libform.a $1//lib/
ln -s lib/ncurses/lib/libform_g.a $1//lib/
ln -s lib/ncurses/lib/libform.so $1//lib/
ln -s lib/ncurses/lib/libform.so.6 $1//lib/
ln -s lib/ncurses/lib/libform.so.6.1 $1//lib/
ln -s lib/ncurses/lib/libmenu.a $1//lib/
ln -s lib/ncurses/lib/libmenu_g.a $1//lib/
ln -s lib/ncurses/lib/libmenu.so $1//lib/
ln -s lib/ncurses/lib/libmenu.so.6 $1//lib/
ln -s lib/ncurses/lib/libmenu.so.6.1 $1//lib/
ln -s lib/ncurses/lib/libncurses++.a $1//lib/
ln -s lib/ncurses/lib/libncurses.a $1//lib/
ln -s lib/ncurses/lib/libncurses++_g.a $1//lib/
ln -s lib/ncurses/lib/libncurses_g.a $1//lib/
ln -s lib/ncurses/lib/libncurses.so $1//lib/
ln -s lib/ncurses/lib/libncurses.so.6 $1//lib/
ln -s lib/ncurses/lib/libncurses.so.6.1 $1//lib/
ln -s lib/ncurses/lib/libpanel.a $1//lib/
ln -s lib/ncurses/lib/libpanel_g.a $1//lib/
ln -s lib/ncurses/lib/libpanel.so $1//lib/
ln -s lib/ncurses/lib/libpanel.so.6 $1//lib/
ln -s lib/ncurses/lib/libpanel.so.6.1 $1//lib/
ln -s lib/ncurses/lib/terminfo $1//lib/
ln -s lib/ncurses/lib/pkgconfig/form.pc $1//lib/pkgconfig/
ln -s lib/ncurses/lib/pkgconfig/menu.pc $1//lib/pkgconfig/
ln -s lib/ncurses/lib/pkgconfig/ncurses++.pc $1//lib/pkgconfig/
ln -s lib/ncurses/lib/pkgconfig/ncurses.pc $1//lib/pkgconfig/
ln -s lib/ncurses/lib/pkgconfig/panel.pc $1//lib/pkgconfig/
echo "INPUT(-lncursesw)" > $1//lib/libncurses.so