talimat 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. # Description: Libraries for terminal-independent handling of character screens.
  2. # URL: http://www.gnu.org/software/ncurses/ncurses.html
  3. # Maintainers: Thomas E. Dickey TD,Juergen Pfeifer JPF,Eric S Raymond ESR,Alexander V Lukyanov,Philippe Blain PB,Sven Verdoolaege SV
  4. # Packager: tnut at nutyx dot org
  5. name=ncurses
  6. version=6.0
  7. release=1
  8. source=(ftp://invisible-island.net/ncurses/ncurses-$version.tar.gz)
  9. build()
  10. {
  11. cd ncurses-$version
  12. sed -i '/LIBTOOL_INSTALL/d' c++/Makefile.in
  13. ./configure --prefix=/usr --mandir=/usr/share/man \
  14. -infodir=/usr/share/info --without-normal \
  15. --with-shared --bindir=/bin --sbindir=/sbin \
  16. --libdir=/lib --without-debug --enable-pc-files \
  17. --enable-widec --with-install-prefix=$PKG
  18. make
  19. make install
  20. mkdir -p $PKG/lib
  21. for lib in ncurses form panel menu ; do \
  22. rm -vf $PKG/lib/lib${lib}.so ; \
  23. echo "INPUT(-l${lib}w)" >$PKG/lib/lib${lib}.so ; \
  24. ln -sfv lib${lib}w.a $PKG/lib/lib${lib}.a ; \
  25. done
  26. ln -sfv libncurses++w.a $PKG/lib/libncurses++.a
  27. rm -vf $PKG/usr/lib/libcursesw.so
  28. echo "INPUT(-lncursesw)" >$PKG/lib/libcursesw.so
  29. ln -sfv libncurses.so $PKG/lib/libcurses.so
  30. ln -sfv libncursesw.a $PKG/lib/libcursesw.a
  31. ln -sfv libncurses.a $PKG/lib/libcurses.a
  32. make distclean
  33. ./configure --prefix=/usr --with-shared --without-normal \
  34. --mandir=/usr/share/man --infodir=/usr/share/info \
  35. --bindir=/bin --sbindir=/sbin --libdir=/lib \
  36. --without-debug --without-cxx-binding --with-install-prefix=$PKG
  37. make sources libs
  38. cp -av lib/lib*.so.6* $PKG/lib
  39. rm -rf $PKG/usr/lib/terminfo
  40. mkdir $PKG/lib/ncurses
  41. for DIR in terminfo tabset
  42. do
  43. mv -v $PKG/usr/share/$DIR \
  44. $PKG/lib/ncurses
  45. ln -sv ../../lib/ncurses/$DIR $PKG/usr/share/$DIR
  46. done
  47. }