[crux-commits] ports/contrib (3.6): ripgrep: initial commit, version 12.1.1

crux at crux.nu crux at crux.nu
Sat Jul 25 11:19:53 UTC 2020


commit 27d58e39cadf77b8eca857726d593a3e12c03184
Author: Tim Biermann <tbier at posteo.de>
Date:   Tue Jul 21 17:23:52 2020 +0000

    ripgrep: initial commit, version 12.1.1

diff --git a/ripgrep/.footprint b/ripgrep/.footprint
new file mode 100644
index 000000000..c599fd8cb
--- /dev/null
+++ b/ripgrep/.footprint
@@ -0,0 +1,3 @@
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/bin/
+-rwxr-xr-x	root/root	usr/bin/rg
diff --git a/ripgrep/.signature b/ripgrep/.signature
new file mode 100644
index 000000000..ab9280e3d
--- /dev/null
+++ b/ripgrep/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF3/8DCOYWOKavFGyJXQ744O5WWquyDk5uDcBlkce1KuFWjzB4gy0cJ7i2dK5QFVDjrdLOCQ8ZJM71u6KUb5CfKw4=
+SHA256 (Pkgfile) = a02f431cf05997f6fe2ffd895b8807c424c21f70113e9efb6fb285590c27f034
+SHA256 (.footprint) = 6a71c827871eda3ec353640f848c1f3ef7abfc7351fefad74143848d35854563
+SHA256 (ripgrep-12.1.1.tar.gz) = 2513338d61a5c12c8fea18a0387b3e0651079ef9b31f306050b1f0aaa926271e
diff --git a/ripgrep/Pkgfile b/ripgrep/Pkgfile
new file mode 100644
index 000000000..70a22c486
--- /dev/null
+++ b/ripgrep/Pkgfile
@@ -0,0 +1,22 @@
+# Description: ripgrep is a line-oriented search tool that recursively searches your current directory for a regex pattern
+# URL: https://github.com/burntsushi/ripgrep
+# Maintainer: Tim Biermann, tbier at posteo dot de
+# Depends on: rust
+
+name=ripgrep
+version=12.1.1
+release=1
+source=(https://github.com/BurntSushi/ripgrep/archive/$version/$name-$version.tar.gz)
+
+build() {
+  cd $name-$version
+  prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
+  mkdir "$PKGMK_SOURCE_DIR/rust" || true
+  export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
+
+  cargo update
+  cargo fetch
+  cargo build --release --locked
+  ls target/release/ -la
+  install -Dt $PKG/usr/bin target/release/rg
+}


More information about the crux-commits mailing list