diff options
Diffstat (limited to 'repo/clucene/clucene.xibuild')
-rw-r--r-- | repo/clucene/clucene.xibuild | 40 |
1 files changed, 40 insertions, 0 deletions
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 +} |