Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

sphinx

By: a guest on Dec 13th, 2011  |  syntax: None  |  size: 0.99 KB  |  hits: 56  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Dan Serban
  2. # Contributor: Vishnevsky Roman <aka dot x0x01 at gmail dot com>
  3.  
  4. pkgname=sphinx
  5. _version=2.0.2
  6. _auxver=beta
  7. pkgver=${_version}_${_auxver}
  8. pkgrel=1
  9. pkgdesc="Free open-source SQL full-text search engine"
  10. arch=(i686 x86_64)
  11. url=http://www.sphinxsearch.com/
  12. license=(GPL)
  13. optdepends=(libmysqlclient postgresql)
  14. source=("http://sphinxsearch.com/files/${pkgname}-${_version}-${_auxver}.tar.gz"
  15.         sphinx.conf.d
  16.         sphinx.rc.d)
  17. md5sums=('fafe0f1a71d0ded32404c067eba7d0b3'
  18.          '48e3e1857919d26d5104a48caffb531b'
  19.          'd886222593c6bba891fd3ce982c90c00')
  20.  
  21. build()
  22. {
  23.   cd "${pkgname}-${_version}-${_auxver}"
  24.   ./configure --prefix=/usr --exec-prefix=/usr \
  25.     --program-prefix="sphinx-" --localstatedir=/var/lib/sphinx --sysconfdir=/etc/sphinx \
  26.     --enable-id64
  27.   make
  28.   make DESTDIR="${pkgdir}" install
  29.   install -Dm755 "${srcdir}"/sphinx.rc.d "${pkgdir}"/etc/rc.d/sphinx
  30.   install -Dm644 "${srcdir}"/sphinx.conf.d "${pkgdir}"/etc/conf.d/sphinx
  31. }
  32.