2020-07-21 19:23:52 +02: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
|
2023-11-27 09:06:32 +01:00
|
|
|
version=14.0.1
|
2023-11-26 20:46:13 +01:00
|
|
|
release=1
|
2020-07-21 19:23:52 +02: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 19:23:52 +02:00
|
|
|
|
2022-09-03 02:17:24 +02:00
|
|
|
cargo build --release --manifest-path $name-$version/Cargo.toml
|
2021-06-12 15:52:44 +02:00
|
|
|
|
|
|
|
install -Dt $PKG/usr/bin $name-$version/target/release/rg
|
2020-07-21 19:23:52 +02:00
|
|
|
}
|