talimat 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Description: Set of libraries that offers command-line editing and history capabilities.
  2. # URL: http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
  3. # Maintainer: Chet Ramey, chet dot ramey at case dot edu
  4. # Packager: pierre at nutyx dot org
  5. name=readline
  6. version=6.3
  7. release=1
  8. source=(http://ftp.gnu.org/gnu/readline/readline-$version.tar.gz
  9. http://www.linuxfromscratch.org/patches/downloads/$name/$name-$version-upstream_fixes-3.patch)
  10. #PKGMK_GROUPS=(devel man doc)
  11. build()
  12. {
  13. cd readline-$version
  14. patch -Np1 -i ../$name-$version-upstream_fixes-3.patch
  15. sed -i '/MV.*old/d' Makefile.in
  16. sed -i '/{OLDSUFF}/c:' support/shlib-install
  17. ./configure --prefix=/usr \
  18. --docdir=/usr/share/doc/readline-$version
  19. make SHLIB_LIBS=-lncurses
  20. make DESTDIR=$PKG install
  21. mkdir -p $PKG/lib
  22. mv -v $PKG/usr/lib/lib{readline,history}.so.* \
  23. $PKG/lib
  24. rm -rf $PKG/usr/share/info/dir
  25. mkdir -p $PKG/usr/share/doc/readline-$version
  26. install -v -m644 doc/*.{ps,pdf,html,dvi} \
  27. $PKG/usr/share/doc/readline-$version
  28. rm -rv $PKG/usr/bin
  29. ln -sfv ../../lib/libreadline.so.6 \
  30. $PKG/usr/lib/libreadline.so
  31. ln -sfv ../../lib/libhistory.so.6 \
  32. $PKG/usr/lib/libhistory.so
  33. rm -r $PKG/usr/share/{doc,info}
  34. }