diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-08-21 09:52:33 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-08-21 09:52:33 -0300 |
commit | 4c50cd8958fa83e4edbf7d2f9c6b475300f40538 (patch) | |
tree | dc9e49842b221641263384e2b49ab0d8ad6d0e59 /~fauno/sphinx/PKGBUILD | |
parent | 125e2429b897d89b7e37fd8ca7b6e11926f677ae (diff) | |
parent | a3669c04838b48b6891b2ffc4b296fa515f8174f (diff) |
Merge branch 'master' of ssh://vparabola/home/parabola/abslibre-pre-mips64el
Conflicts:
community-testing/qingy/PKGBUILD
community/mfs/PKGBUILD
extra/mysql/PKGBUILD
testing/mesa/PKGBUILD
Diffstat (limited to '~fauno/sphinx/PKGBUILD')
-rw-r--r-- | ~fauno/sphinx/PKGBUILD | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/~fauno/sphinx/PKGBUILD b/~fauno/sphinx/PKGBUILD new file mode 100644 index 000000000..fa5a7935e --- /dev/null +++ b/~fauno/sphinx/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: dryes <joswiseman@gmail> +# Contributor: Dan Serban +# Contributor: Vishnevsky Roman <aka dot x0x01 at gmail dot com> +# Contributor: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> +pkgname='sphinx' +pkgver=2.0.5 +pkgrel=2 +pkgdesc='Free open-source SQL full-text search engine.' +arch=('i686' 'x86_64') +url='http://www.sphinxsearch.com/' +license=('GPL') +depends=('unixodbc' 'expat' 'libmysqlclient' 'postgresql-libs') +optdepends=('postgresql') +backup=('etc/conf.d/sphinx') +source=("http://sphinxsearch.com/files/${pkgname}-${pkgver}-release.tar.gz" 'sphinx.conf.d' 'sphinx.rc.d') + +build() { + sed -i '15199,15199 s/x00/x21/' "${srcdir}/${pkgname}-${pkgver}-release/src/searchd.cpp" + + cd "${srcdir}/${pkgname}-${pkgver}-release" + ./configure --prefix=/usr --exec-prefix=/usr --localstatedir=/var/lib/sphinx \ + --sysconfdir=/etc/sphinx --with-pgsql --enable-id64 + + make +} + +package() { + cd "${srcdir}/${pkgname}-${pkgver}-release" + + make DESTDIR="${pkgdir}" install + + for _f in "${pkgdir}/usr/bin/"*; do + ln -s "/usr/bin/${_f##*/}" "${pkgdir}/usr/bin/sphinx-${_f##*/}" + done + + install -Dm755 "${srcdir}/sphinx.rc.d" "${pkgdir}/etc/rc.d/sphinx" + install -Dm644 "${srcdir}/sphinx.conf.d" "${pkgdir}/etc/conf.d/sphinx" +} + +md5sums=('e71fdb5b0c2911247d48fb30550b9584' + '48e3e1857919d26d5104a48caffb531b' + 'd886222593c6bba891fd3ce982c90c00') |