Guest User

Untitled

a guest
Nov 30th, 2018
200
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Maintainer: Florijan Hamzic <fh@infinicode.de>
  2.  
  3. pkgname='sphinx-bin'
  4. pkgver=3.1.1
  5. pkghash=612d99f
  6. pkgrel=1
  7. pkgdesc='Closed Source SQL full-text search engine.'
  8. arch=('x86_64')
  9. url='http://www.sphinxsearch.com/'
  10. license=('GPL')
  11. backup=('etc/conf.d/sphinx')
  12. conflicts=("sphinx")
  13. install='sphinx.install'
  14.  
  15. source=(
  16. "http://sphinxsearch.com/files/sphinx-${pkgver}-${pkghash}-linux-amd64.tar.gz"
  17. 'sphinx.conf.d'
  18. 'sphinx.install'
  19. 'sphinx.service')
  20.  
  21. package() {
  22. cd "${srcdir}/sphinx-${pkgver}"
  23.  
  24. # create directories
  25. install -d "$pkgdir"/usr/bin
  26. install -d "$pkgdir"/etc/sphinx
  27. install -d "$pkgdir"/usr/share/sphinx/lib
  28. install -d "$pkgdir"/usr/share/licenses/sphinx
  29.  
  30. mv etc/* "${pkgdir}"/etc/sphinx/
  31. mv api "${pkgdir}"/usr/share/sphinx/lib/api
  32. mv doc/license-* "$pkgdir"/usr/share/licenses/sphinx/
  33. mv doc "${pkgdir}"/usr/share/sphinx/lib/doc
  34.  
  35. # create links
  36. for _f in "bin/"*; do
  37. install -Dm755 "bin/${_f##*/}" "${pkgdir}/usr/bin/${_f##*/}"
  38. ln -s "/usr/bin/${_f##*/}" "${pkgdir}/usr/bin/sphinx-${_f##*/}"
  39. done
  40.  
  41. install -Dm644 "${srcdir}/sphinx.conf.d" "${pkgdir}/etc/conf.d/sphinx"
  42. install -Dm644 "${srcdir}/sphinx.service" "${pkgdir}/usr/lib/systemd/system/sphinx.service"
  43. }
  44.  
  45. md5sums=('95342708882fb9417c1bafe6efa81bbd'
  46. '48e3e1857919d26d5104a48caffb531b'
  47. 'a5968e77e1c2f7e69cd7431a78d37ae3'
  48. 'fe06a8aff0520a6f75596ee43d2e5935')
RAW Paste Data