updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / sphinx-svn / PKGBUILD
blob5c037c5cf5625274a9562f4352f11bf73ac553e0
1 # Contributor: Karapetov Alexey <karapetov at gmail dot com>
2 pkgname=sphinx-svn
3 pkgver=2620
4 pkgrel=1
5 pkgdesc="Free open-source SQL full-text search engine (SVN version, with libsphinxclient and PostgreSQL support, without conf.d and rc.d)"
6 arch=(i686 x86_64)
7 url="http://www.sphinxsearch.com"
8 license=('GPL')
9 depends=()
10 makedepends=('subversion' 'fakeroot')
12 provides=("sphinx")
13 conflicts=("sphinx")
15 # https://bbs.archlinux.org/viewtopic.php?id=77214
16 options=('!makeflags')
18 _svntrunk=http://sphinxsearch.googlecode.com/svn/trunk
19 _svnmod=sphinx
21 build() {
22   cd "$srcdir"
24   msg "SVN co/up..."
26   if [ -d $_svnmod/.svn ]; then
27       (cd $_svnmod && svn up -r $pkgver)
28   else
29       svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
30   fi
32   msg "...done or server timeout"
33   msg "Cleaning dirs..."
35   rm -rf "$srcdir/$_svnmod-build"
36   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
38   cd "$srcdir/$_svnmod-build"
39   msg "Starting sphinx make..."
41   ./configure --prefix=/usr \
42   --exec-prefix=/usr \
43   --program-prefix=sphinx- \
44   --localstatedir=/var/lib/sphinx \
45   --sysconfdir=/etc/sphinx \
46   --with-pgsql \
47   --enable-id64
48   make || return 1
49   make DESTDIR=${startdir}/pkg install || return 1
51   cd "$srcdir/$_svnmod-build/api/libsphinxclient"
52   msg "Starting libsphinxclient make..."
54   ./configure --prefix=/usr \
55   --exec-prefix=/usr \
56   --program-prefix=sphinx- \
57   --localstatedir=/var/lib/sphinx \
58   --sysconfdir=/etc/sphinx \
59   --with-pgsql \
60   --enable-id64
61   make || return 1
62   make DESTDIR=${startdir}/pkg install || return 1