# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=xapian-omega pkgver=1.2.23 pkgrel=0 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.xz" _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 \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/$pkgname \ --enable-static=no make || return 1 } package() { local f cd "$_builddir" make DESTDIR=$pkgdir install || return 1 install -Dm755 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="684c9d880663cac17eaa46d586859bc9 xapian-omega-1.2.23.tar.xz" sha256sums="55c790204fc0b1ddbd4bdae73aa55eed40671475e13252a71a53a01f80d172ef xapian-omega-1.2.23.tar.xz" sha512sums="1ea2b090b75f7ab530bbb6af79eb26931684796f9b0a987530f44e7f7f9527929644880f7528198e0ea22f69feabd014783c0b01edaa6673b54f83091e9a5428 xapian-omega-1.2.23.tar.xz"