summaryrefslogtreecommitdiffstats
path: root/system/ripgrep
diff options
context:
space:
mode:
author Andrew Clemons2021-12-07 06:18:32 +0100
committer Willy Sudiarto Raharjo2021-12-10 02:37:42 +0100
commitb583851c93839660e5569e15c6739f1bc60f6bdb (patch)
tree1862de7bb8f03833cea3cdd1d0b27fb75bab92f6 /system/ripgrep
parent55e232d267e85a763c407b99e2cb78fcd04ca021 (diff)
downloadslackbuilds-b583851c93839660e5569e15c6739f1bc60f6bdb.tar.gz
system/ripgrep: Build with pcre2 support.
Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/ripgrep')
-rw-r--r--system/ripgrep/ripgrep.SlackBuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/system/ripgrep/ripgrep.SlackBuild b/system/ripgrep/ripgrep.SlackBuild
index 4ede33c3e2..6318a27690 100644
--- a/system/ripgrep/ripgrep.SlackBuild
+++ b/system/ripgrep/ripgrep.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for ripgrep
-# Copyright 2017-2020 Andrew Clemons, Wellington New Zealand
+# Copyright 2017-2021 Andrew Clemons, Wellington New Zealand
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ripgrep
VERSION=${VERSION:-13.0.0}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -141,9 +141,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+PCRE2_SYS_STATIC=0 \
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
-cargo build --release $CARGOTARGET
+cargo build --features 'pcre2' --release $CARGOTARGET
mkdir -p $PKG/usr/bin/