updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / sphinx / PKGBUILD
blob0a158daa473f474d99602358a19b44be2fc10be7
1 # Maintainer: dryes <joswiseman@gmail>
2 # Contributor: Dan Serban
3 # Contributor: Vishnevsky Roman <aka dot x0x01 at gmail dot com>
4 # Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
5 pkgname='sphinx'
6 pkgver=2.0.3
7 pkgrel=2
8 pkgdesc='Free open-source SQL full-text search engine.'
9 arch=('i686' 'x86_64')
10 url='http://www.sphinxsearch.com/'
11 license=('GPL')
12 depends=('unixodbc' 'expat' 'libmysqlclient')
13 optdepends=('postgresql')
14 backup=('etc/conf.d/sphinx')
15 source=("http://sphinxsearch.com/files/${pkgname}-${pkgver}-release.tar.gz" 'sphinx.conf.d' 'sphinx.rc.d')
17 build() {
18   cd "${srcdir}/${pkgname}-${pkgver}-release"
19   ./configure --prefix=/usr --exec-prefix=/usr --program-prefix='sphinx-' \
20   --localstatedir=/var/lib/sphinx --sysconfdir=/etc/sphinx --enable-id64
21   make
24 package() {
25   cd "${srcdir}/${pkgname}-${pkgver}-release"
26   make DESTDIR="${pkgdir}" install
27   install -Dm755 "${srcdir}/sphinx.rc.d" "${pkgdir}/etc/rc.d/sphinx"
28   install -Dm644 "${srcdir}/sphinx.conf.d" "${pkgdir}/etc/conf.d/sphinx"
31 md5sums=('a1293aecd5034aa797811610beb7ba89'
32          '48e3e1857919d26d5104a48caffb531b'
33          'd886222593c6bba891fd3ce982c90c00')