recipe 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Recipe file for xapian-core.
  2. #
  3. # Maintainers: (C) 2017 Mateus P. Rodrigues, mprodrigues@dragora.org.
  4. #
  5. # Under the terms of the GNU General Public License.
  6. program=xapian-core
  7. version=1.2.24
  8. release=1
  9. description="
  10. Xapian is an Open Source Search Engine Library, released under the GPL v2+.
  11. "
  12. homepage=https://xapian.org/
  13. license=GPLv2+
  14. tarname=${program}-${version}.tar.xz
  15. # Remote source(s)
  16. fetch="http://oligarchy.co.uk/xapian/1.2.24/${tarname}"
  17. # Parallel jobs for the compiler
  18. jobs=1
  19. # Source documentation
  20. docs="AUTHORS COPYING ChangeLog* HACKING INSTALL NEWS PLATFORMS README"
  21. build() {
  22. unpack "${tardir}/$tarname"
  23. cd "$srcdir"
  24. ./configure \
  25. make -j${jobs}
  26. make -j${jobs} install DESTDIR="$destdir"
  27. # Compress manual pages
  28. if [ -d "${destdir}/$mandir" ] ; then
  29. (
  30. cd "${destdir}/$mandir"
  31. find . -type f -exec lzip -9 '{}' +
  32. find . -type l | while read -r file
  33. do
  34. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  35. rm -- "$file"
  36. done
  37. )
  38. fi
  39. # Copy documentation
  40. mkdir -p "${destdir}/usr/local/share/doc/${program}-${version}"
  41. cp -p $docs "${destdir}/usr/local/share/doc/${program}-${version}/"
  42. }