From d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 Mon Sep 17 00:00:00 2001 From: davidovski Date: Wed, 15 Jun 2022 20:02:02 +0100 Subject: added deps for qemu --- repo/clucene/clucene.xibuild | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 repo/clucene/clucene.xibuild (limited to 'repo/clucene/clucene.xibuild') diff --git a/repo/clucene/clucene.xibuild b/repo/clucene/clucene.xibuild new file mode 100644 index 0000000..2d57c38 --- /dev/null +++ b/repo/clucene/clucene.xibuild @@ -0,0 +1,40 @@ +#!/bin/sh + +NAME="clucene" +DESC="A C++ port of Lucene" + +MAKEDEPS="cmake zlib boost ninja" + +PKG_VER=2.3.3.4 +SOURCE="https://downloads.sourceforge.net/clucene/clucene-core-$PKG_VER.tar.gz" + +ADDITIONAL=" +clucene-core-2.3.3.4-install_contribs_lib.patch +clucene-core-2.3.3.4-pkgconfig.patch +" + +prepare () { + apply_patches +} + +build() { + cmake -B build -G Ninja \ + -DCMAKE_BUILD_TYPE=MinSizeRel \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DBUILD_CONTRIBS_LIB=ON \ + -DLIB_DESTINATION=/usr/lib \ + -DLUCENE_SYS_INCLUDES=/usr/lib \ + . + cmake --build build +} + +check() { + cd build + CTEST_OUTPUT_ON_FAILURE=TRUE ctest + cd $BUILD_ROOT +} + +package() { + DESTDIR="$PKG_DEST" cmake --install build + rm -r "$PKG_DEST"/usr/lib/CLuceneConfig.cmake +} -- cgit v1.2.1