summaryrefslogtreecommitdiff
path: root/skip/ripgrep/ripgrep.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
committerdavidovski <david@davidovski.xyz>2023-02-02 14:10:02 +0000
commitf29d569cd33a73da5ad675f43a34ad53c5cc9bc6 (patch)
tree76fe6267f8307e7630fc6f53ff99a9767ad40de0 /skip/ripgrep/ripgrep.xibuild
parent05d004dfe0c9a9d898fac8a4a0292ca2a74ca391 (diff)
Work
Diffstat (limited to 'skip/ripgrep/ripgrep.xibuild')
-rw-r--r--skip/ripgrep/ripgrep.xibuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/skip/ripgrep/ripgrep.xibuild b/skip/ripgrep/ripgrep.xibuild
new file mode 100644
index 0000000..8820a83
--- /dev/null
+++ b/skip/ripgrep/ripgrep.xibuild
@@ -0,0 +1,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
+}
+