[arch-commits] Commit in ripgrep/trunk (PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Tue Jun 15 06:27:32 UTC 2021
Date: Tuesday, June 15, 2021 @ 06:27:32
Author: svenstaro
Revision: 963685
upgpkg: ripgrep 13.0.0-2: Fix PCRE2 feature (fixes #71251)
Modified:
ripgrep/trunk/PKGBUILD
----------+
PKGBUILD | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-15 06:27:28 UTC (rev 963684)
+++ PKGBUILD 2021-06-15 06:27:32 UTC (rev 963685)
@@ -3,7 +3,7 @@
# Contributor: Andrew Gallant <jamslam at gmail.com>
pkgname=ripgrep
pkgver=13.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="A search tool that combines the usability of ag with the raw speed of grep"
arch=('x86_64')
url="https://github.com/BurntSushi/ripgrep"
@@ -16,7 +16,8 @@
build() {
cd "$pkgname-$pkgver"
- cargo build --release --locked --features 'pcre2'
+ cargo build --release --locked --features 'pcre2' --message-format=json-render-diagnostics |
+ jq -r 'select(.out_dir) | select(.package_id | startswith("ripgrep ")) | .out_dir' > out_dir
}
check() {
@@ -27,10 +28,8 @@
package() {
cd "$pkgname-$pkgver"
+ local OUT_DIR=$(<out_dir)
- OUT_DIR="$(cargo build --release --locked --message-format=json-render-diagnostics |
- jq -r 'select(.out_dir) | select(.package_id | startswith("ripgrep ")) | .out_dir')"
-
install -Dm755 "target/release/rg" "$pkgdir/usr/bin/rg"
install -Dm644 "complete/_rg" "$pkgdir/usr/share/zsh/site-functions/_rg"
More information about the arch-commits
mailing list