talimat 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Tanım: Set of libraries that offers command-line editing and history capabilities.
  2. # URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
  3. # Paketçi: milisarge
  4. # Gerekler:
  5. isim=readline
  6. surum=6.3
  7. devir=1
  8. kaynak=(http://ftp.gnu.org/gnu/readline/readline-$surum.tar.gz
  9. http://www.linuxfromscratch.org/patches/downloads/$isim/$isim-$surum-upstream_fixes-3.patch)
  10. derle()
  11. {
  12. cd readline-$surum
  13. patch -Np1 -i ../$isim-$surum-upstream_fixes-3.patch
  14. sed -i '/MV.*old/d' Makefile.in
  15. sed -i '/{OLDSUFF}/c:' support/shlib-install
  16. ./configure --prefix=/usr \
  17. --docdir=/usr/share/doc/readline-$surum
  18. make SHLIB_LIBS=-lncurses
  19. make DESTDIR=$PKG install
  20. mkdir -p $PKG/lib
  21. mv -v $PKG/usr/lib/lib{readline,history}.so.* \
  22. $PKG/lib
  23. rm -rf $PKG/usr/share/info/dir
  24. mkdir -p $PKG/usr/share/doc/readline-$surum
  25. install -v -m644 doc/*.{ps,pdf,html,dvi} \
  26. $PKG/usr/share/doc/readline-$surum
  27. rm -rv $PKG/usr/bin
  28. ln -sfv ../../lib/libreadline.so.6 \
  29. $PKG/usr/lib/libreadline.so
  30. ln -sfv ../../lib/libhistory.so.6 \
  31. $PKG/usr/lib/libhistory.so
  32. rm -r $PKG/usr/share/{doc,info}
  33. }