diff options
author | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-15 20:02:02 +0100 |
commit | d2567bfbdf0e9fa6db0a6ed1534831ec859a3e03 (patch) | |
tree | 684a17eebf446aa1adab1097616f1882c8d51568 /repo/clucene/clucene.xibuild | |
parent | d1fc3393cca72e8e432f827f7624e38734fad6dc (diff) |
added deps for qemu
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 +} |