diff options
Diffstat (limited to 'testing/sphinx/APKBUILD')
-rw-r--r-- | testing/sphinx/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/testing/sphinx/APKBUILD b/testing/sphinx/APKBUILD new file mode 100644 index 0000000000..032d67b16a --- /dev/null +++ b/testing/sphinx/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: Francesco Colista <francesco.colista@gmail.com> +# Maintainer: Francesco Colista <francesco.colista@gmail.com> +pkgname=sphinx +pkgver=2.0.6 +pkgrel=0 +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" +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-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" |