From 4ade9654d9f84f7274e1c7ef536fef91e9b1de87 Mon Sep 17 00:00:00 2001 From: Artur Sinila Date: Tue, 29 Sep 2020 01:48:27 +0300 Subject: [PATCH] ripgrep: use system-provided libpcre2 --- srcpkgs/ripgrep/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/ripgrep/template b/srcpkgs/ripgrep/template index 339d2de3a39..158619189cc 100644 --- a/srcpkgs/ripgrep/template +++ b/srcpkgs/ripgrep/template @@ -1,7 +1,7 @@ # Template file for 'ripgrep' pkgname=ripgrep version=12.1.1 -revision=1 +revision=2 build_style=cargo configure_args="--features=pcre2" hostmakedepends="ruby-asciidoctor pkg-config" @@ -13,6 +13,13 @@ homepage="https://github.com/BurntSushi/ripgrep/" distfiles="https://github.com/BurntSushi/${pkgname}/archive/${version}.tar.gz" checksum=2513338d61a5c12c8fea18a0387b3e0651079ef9b31f306050b1f0aaa926271e +# Dynamic linking to libpcre2 even on musl +export PCRE2_SYS_STATIC=0 + +pre_build() { + echo "PCRE2_SYS_STATIC=$PCRE2_SYS_STATIC" +} + post_install() { vlicense LICENSE-MIT vlicense UNLICENSE