summaryrefslogtreecommitdiff
path: root/ripgrep/Pkgfile
blob: 4a6749141ede4936c8f6813e57bdce2ef63e63a7 (plain)
    1 # Description: ripgrep is a line-oriented search tool that recursively searches your current directory for a regex pattern
    2 # URL: https://github.com/burntsushi/ripgrep
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: rust
    5 
    6 name=ripgrep
    7 version=13.0.0
    8 release=1
    9 source=(https://github.com/BurntSushi/ripgrep/archive/$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   prt-get isinst sccache && export RUSTC_WRAPPER=/usr/bin/sccache
   13   mkdir "$PKGMK_SOURCE_DIR/rust" || true
   14   export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
   15 
   16   cargo update --manifest-path $name-$version/Cargo.toml
   17   cargo fetch --manifest-path $name-$version/Cargo.toml --locked
   18   cargo build --release --locked --manifest-path $name-$version/Cargo.toml
   19 
   20   install -Dt $PKG/usr/bin $name-$version/target/release/rg
   21 }

Generated by cgit