talimat 1006 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Description: The Man-DB package contains programs for finding and viewing man pages.
  2. # URL: http://savannah.nongnu.org/projects/man-db
  3. # Maintainer: Colin Watson cjwatson at debian dot org
  4. # Packagers: pierre at nutyx dot org, tnut at nutyx dot org
  5. name=man-db
  6. version=2.7.2
  7. release=1
  8. source=(http://savannah.nongnu.org/download/man-db/man-db-$version.tar.xz \
  9. )
  10. run=(groff less)
  11. build()
  12. {
  13. cd man-db-$version
  14. PKG_CONFIG_PATH="/usr/lib/pkgconfig" ./configure --prefix=/usr \
  15. --libexecdir=/usr/lib \
  16. --docdir=/usr/share/doc/man-$version \
  17. --sysconfdir=/etc --disable-setuid \
  18. --with-browser=/usr/bin/lynx --with-vgrind=/usr/bin/vgrind \
  19. --with-grap=/usr/bin/grap
  20. make
  21. # Certains test fails
  22. make -k check || true
  23. make DESTDIR=$PKG install
  24. cat >> convert-mans << "EOF"
  25. #!/bin/sh -e
  26. FROM="$1"
  27. TO="$2"
  28. shift ; shift
  29. while [ $# -gt 0 ]
  30. do
  31. FILE="$1"
  32. shift
  33. iconv -f "$FROM" -t "$TO" "$FILE" >.tmp.iconv
  34. mv .tmp.iconv "$FILE"
  35. done
  36. EOF
  37. install -m755 convert-mans $PKG/usr/bin
  38. }