contrib/clucene/Pkgfile

37 lines
1.4 KiB
Plaintext
Raw Normal View History

# Description: Indexing and searching library
# URL: https://www.sourceforge.net/projects/clucene
# Maintainer: Tim Biermann, tbier at posteo dot de
# Depends on: cmake
# Optional: log4cxx bzip2 exiv2 boost
name=clucene
version=2.3.3.4
release=1
source=(https://downloads.sourceforge.net/project/clucene/clucene-core-unstable/2.3/$name-core-$version.tar.gz
fix_zlib_detections.diff clucene-core-2.3.3.4-install_contribs_lib.patch clucene-narrowing-conversions.patch clucene-warnings.patch clucene-debug.patch clucene-gcc-atomics.patch clucene-multimap-put.patch clucene-2.3.3.4-contribs_lib-1.patch cmake.patch contribs-lib-makefile.patch)
build() {
cd $name-core-$version
patch -Np1 -i $SRC/cmake.patch
patch -Np1 -i $SRC/clucene-2.3.3.4-contribs_lib-1.patch
patch -Np1 -i ${SRC}/fix_zlib_detections.diff
# LibreOffice patches http://cgit.freedesktop.org/libreoffice/core/tree/clucene/patches
patch -Np0 -i ${SRC}/clucene-warnings.patch
patch -Np0 -i ${SRC}/clucene-gcc-atomics.patch
patch -Np0 -i ${SRC}/clucene-debug.patch
patch -Np0 -i ${SRC}/clucene-narrowing-conversions.patch
patch -Np0 -i ${SRC}/clucene-multimap-put.patch
mkdir build; cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_CONTRIBS_LIB=ON \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_ASCII_MODE=OFF \
-DENABLE_PACKAGING=OFF \
-DDISABLE_MULTITHREADING=OFF \
..
make
make DESTDIR=$PKG install
}