blob: 2d57c382eab286cf2268a32abf26c18570aa7056 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
}
|