# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=xapian-omega pkgver=1.4.11 pkgrel=1 pkgdesc="Indexers and CGI search frontend for Xapian" url="http://www.xapian.org/" arch="all" license="GPL-2.0-or-later" makedepends="$depends_dev xapian-core-dev perl-dev pcre-dev zlib-dev file-dev" subpackages="$pkgname-doc" source="http://oligarchy.co.uk/xapian/${pkgver}/$pkgname-$pkgver.tar.xz" builddir="$srcdir"/$pkgname-$pkgver prepare() { default_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 } check() { cd "$builddir" make check } package() { local f cd "$builddir" make DESTDIR=$pkgdir install 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 } sha512sums="135077e26dc0b0707d1d14c64eeb25db67374b1b7909e9f3e925b10e03b1557263339d2f84c5a82046a159e58a5301834e76e99843d66342666d5694f91ed4f3 xapian-omega-1.4.11.tar.xz"