aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sphinx/APKBUILD
blob: 8de899b2868b503de2bc1b7cbb91d879aac5fc2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Francesco Colista <francesco.colista@gmail.com>
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=sphinx
pkgver=2.0.6
pkgrel=1
pkgdesc="Free open-source SQL full-text search engine"
url="http://www.sphinxsearch.com"
arch="all"
license="GPL2"
depends=""
depends_dev="postgresql-dev mysql-dev unixodbc-dev expat-dev libiconv snowball-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="http://sphinxsearch.com/files/$pkgname-$pkgver-release.tar.gz
	sphinx.initd"

_builddir="$srcdir"/$pkgname-$pkgver-release
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--exec-prefix=/usr \
		--localstatedir=/var/lib/sphinx \
		--sysconfdir=/etc/sphinx \
		--with-pgsql \
		--with-mysql \
		--with-unixodbc \
		--with-libexpat \
		--with-iconv \
		--with-libstemmer \
		--with-syslog \
		--enable-id64
	make || return 1
		
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname \
	                || return 1


}

md5sums="de6be5ee20b1bfafa2a0cea7155a8331  sphinx-2.0.6-release.tar.gz
38a9a10e6b927c597005d571be737f70  sphinx.initd"