2020-07-21 17:23:52 +00:00
|
|
|
# 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
|
2021-06-12 13:52:44 +00:00
|
|
|
version=13.0.0
|
2022-09-03 02:17:24 +02:00
|
|
|
release=2
|
2020-07-21 17:23:52 +00:00
|
|
|
source=(https://github.com/BurntSushi/ripgrep/archive/$version/$name-$version.tar.gz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
|
2022-09-03 02:17:24 +02:00
|
|
|
[[ ! -e $PKGMK_SOURCE_DIR/rust ]] && mkdir $PKGMK_SOURCE_DIR/rust
|
2020-07-21 17:23:52 +00:00
|
|
|
|
2022-09-03 02:17:24 +02:00
|
|
|
cargo build --release --manifest-path $name-$version/Cargo.toml
|
2021-06-12 13:52:44 +00:00
|
|
|
|
|
|
|
install -Dt $PKG/usr/bin $name-$version/target/release/rg
|
2020-07-21 17:23:52 +00:00
|
|
|
}
|