# Contributor: Francesco Colista # Maintainer: Francesco Colista pkgname=xapian-omega pkgver=1.4.12 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 disable-omegatest-faketime-ismissing.patch" builddir="$srcdir"/$pkgname-$pkgver prepare() { default_prepare 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() { ./configure XAPIAN_CONFIG=/usr/bin/xapian-config \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc/$pkgname \ --enable-static=no make } check() { make check } package() { local f 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="2d2c48646f4f06fc4b2666e0901e4f73b2c5da93c4a8e8a5ea6d32e9076a2f18c15c14c7dd2ae2d421a501119ea19b52fe324ad98f9f0bfd6b80f4286721aa2e xapian-omega-1.4.12.tar.xz bc04b93a178c45438c34269e28638bebe16ebfcfb12959fb101ea16f47cf514ba2330c9b9ac45dc4660d55acad936ff1bfbdcafcc7acf115cd85de077d096cea disable-omegatest-faketime-ismissing.patch"