libraries/LucenePlusPlus: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2024-03-03 22:46:46 +07:00
parent 3b06861f8d
commit 79f12974dc
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
2 changed files with 4 additions and 7 deletions

View File

@ -2,7 +2,7 @@
# Slackware build script for LucenePlusPlus
# Copyright 2014-2021 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# Copyright 2014-2024 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=LucenePlusPlus
VERSION=${VERSION:-3.0.8}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -38,9 +38,6 @@ if [ -z "$ARCH" ]; then
esac
fi
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
# the name of the created package would be, and then exit. This information
# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@ -83,13 +80,13 @@ patch -p1 < $CWD/soname.patch
mkdir -p build
cd build
export "PATH=/opt/cmake-202x/bin:$PATH"
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_DESTINATION=/usr/lib${LIBDIRSUFFIX} \
-DCMAKE_CXX_FLAGS='-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT' \
-DENABLE_TEST=OFF \
-DCMAKE_BUILD_TYPE=Release ..
make
make install DESTDIR=$PKG

View File

@ -5,6 +5,6 @@ DOWNLOAD="https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_3.0.8.tar
MD5SUM="cb9b2e7cb37b7dd68c1e24a65c6eda9d"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gtest"
REQUIRES=""
MAINTAINER="Willy Sudiarto Raharjo"
EMAIL="willysr@slackbuilds.org"