# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=xapian-omega pkgver=1.2.15 pkgrel=2 pkgdesc="Indexers and CGI search frontend for Xapian" url="http://www.xapian.org/" arch="all" license="GPL2+" depends="" depends_dev="xapian-core-dev perl-dev pcre-dev zlib-dev" makedepends="$depends_dev" install="" subpackages="$pkgname-doc" source="http://oligarchy.co.uk/xapian/${pkgver}/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" sed -i -e "s/std::getchar/getchar/g" urldecode.h sed -i -e "s/template_dir.*/template_dir \/usr\/share\/omega\/templates/g" omega.conf } build() { cd "$_builddir" ./configure XAPIAN_CONFIG=/usr/bin/xapian-config \ --prefix=/usr \ --sysconfdir=/etc/$pkgname \ --enable-static=no make || return 1 } package() { local f cd "$_builddir" make DESTDIR=$pkgdir install || return 1 install -Dm755 "$srcdir"omega.conf "$pkgdir"/etc/$pkgname/omega.conf mkdir -p "$pkgdir"/var/log/omega mkdir -p "$pkgdir"/var/lib/omega/cdb mkdir -p "$pkgdir"/var/lib/omega/data for f in templates images; do install -d "$pkgdir"/usr/share/omega/$f && cp -ar $f/* "$pkgdir"/usr/share/omega/$f ; done } md5sums="6d1b28fa095c3dfdee81c3d683402fd6 xapian-omega-1.2.15.tar.gz" sha256sums="3c51bbce59e8d18459983e10046183f42eb5ee79b5143ea612c27f1cd6338b9d xapian-omega-1.2.15.tar.gz" sha512sums="f14331e05b84318380017853a14331db6e3a0dccf902ba8740e4b87f2ae75cdd4574af29c5b5cd949d1bdcc0ef2d555912be3f9106d3b5c36ac22b5b44e81838 xapian-omega-1.2.15.tar.gz"