blob: 8820a8335aa325b262d1a27fac5d7ac9a98a4bd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#!/bin/sh
NAME="ripgrep"
DESC="ripgrep combines the usability of The Silver Searcher with the raw speed of grep"
MAKEDEPS=" cargo asciidoc jemalloc pcre2"
PKG_VER=13.0.0
SOURCE="https://github.com/BurntSushi/ripgrep/archive/$PKG_VER/ripgrep-$PKG_VER.tar.gz"
ADDITIONAL="
minimize-size.patch
"
prepare () {
apply_patches
}
build() {
cargo build --release --locked --features 'pcre2'
}
check() {
cargo test --release --locked --features 'pcre2'
}
package() {
install -Dm755 "target/release/rg" "$PKG_DEST/usr/bin/rg"
install -Dm644 "target/release/build/ripgrep-"*/out/rg.1 \
"$PKG_DEST/usr/share/man/man1/rg.1"
install -Dm644 "$BUILD_ROOT"/target/release/build/ripgrep-*/out/rg.fish \
-t "$PKG_DEST"/usr/share/fish/completions
}
|