From b9424df3adea55192b1ed3c8647f8b9d7dea1fee Mon Sep 17 00:00:00 2001 From: Omar Vega Ramos Date: Thu, 21 May 2015 19:26:27 -0500 Subject: sphinx: add new package to [pcr] --- pcr/sphinx/PKGBUILD | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 pcr/sphinx/PKGBUILD (limited to 'pcr/sphinx/PKGBUILD') diff --git a/pcr/sphinx/PKGBUILD b/pcr/sphinx/PKGBUILD new file mode 100644 index 000000000..96f149275 --- /dev/null +++ b/pcr/sphinx/PKGBUILD @@ -0,0 +1,58 @@ +# Maintainer (Arch): Isaac Aronson +# Contributor (Arch): Dan Serban +# Contributor (Arch): Jim Casteel +# Contributor (Arch): dryes +# Contributor (Arch): Vishnevsky Roman +# Contributor (Arch): Massimiliano Torromeo +# Contributor (Arch): Aldo Culquicondor +# Contributor (Arch): Florijan Hamzic +# Maintainer: Omar Vega Ramos +pkgname='sphinx' +pkgver=2.2.9 +pkgrel=1 +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') +install='sphinx.install' +source=("http://sphinxsearch.com/files/${pkgname}-${pkgver}-release.tar.gz" + 'sphinx.conf.d' + 'sphinx.rc.d' + 'sphinx.service' + 'sphinx.tmpfiles.conf') + +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" + install -Dm644 "${srcdir}/sphinx.service" "${pkgdir}/usr/lib/systemd/system/sphinx.service" + install -d "${pkgdir}/usr/share/sphinx/lib" + install -Dm644 api/sphinxapi.php "${pkgdir}/usr/share/sphinx/lib/sphinxapi.php" + install -Dm644 api/sphinxapi.py "${pkgdir}/usr/share/sphinx/lib/sphinxapi.py" + install -Dm644 "${srcdir}/sphinx.tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/sphinx.conf" +} +md5sums=('1fcc3d180c0559bdeb93602ef248caf4' + '48e3e1857919d26d5104a48caffb531b' + 'faaa8310af97ff1dbdaf08612e442020' + 'fe06a8aff0520a6f75596ee43d2e5935' + '22ec4cd0471a1d52702d57d78614b8d8') -- cgit v1.2.3