# Compiling Time: 0.23 SBU
# Maintainer: Marius Cirsta <mcirsta@frugalware.org>

pkgname=lucene++
pkgver=3.0.9
pkgrel=5
pkgdesc="An up to date C++ port of the popular Java Lucene library, a high-performance, full-featured text search engine"
depends=('libboost>=1.88.0')
makedepends+=('boost' 'zlib-ng-devel')
groups=('lib-extra')
archs=('x86_64')
_F_archive_name="rel"
Fpkgversep="_"
_F_github_author=luceneplusplus
_F_github_name=LucenePlusPlus
_F_github_tag=y
_F_github_ver="rel_${pkgver}"
_F_cmake_confopts="	-DLIB_DESTINATION=/usr/lib \
			-DENABLE_TEST=OFF \
			-DBUILD_GMOCK=OFF \
			-DINSTALL_GTEST=OFF \
			-DENABLE_CUSTOM_ALLOCATOR='FALSE' \
			-DCMAKE_CXX_FLAGS='-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT'"
Finclude github cmake
up2date="$up2date | sed 's/rel_//'"
options=('static')
source+=(boost-1.85.patch \
	boost-1.87.patch)
sha1sums=('515d0fc58c4c4f8fcc6436f22ceaf39d36b24b9e' \
          '97f83adecc6d8ed9f818104fe2aa447680998e8c' \
          '21e9e353b3fffc35953932e619b3d10c9c947414')
_F_cd_path="LucenePlusPlus-rel_${pkgver}"

build() {
	export CMAKE_POLICY_VERSION_MINIMUM=3.5
	CMake_build
}

# optimization OK
