summaryrefslogtreecommitdiffstats
path: root/ripgrep/MAKEPKG
blob: d9722225ae35ab381885ffe70ac412e9ac10b76b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/mkpkg
# description: Fast recursive grep using Rust regex engine
# url: https://github.com/BurntSushi/ripgrep
name=ripgrep
version=15.1.0
release=1
makedeps=(rust)
source=(https://github.com/BurntSushi/ripgrep/archive/$version.tar.gz)
renames=(ripgrep-$version.tar.gz)

sha256sums=(
    "046fa01a216793b8bd2750f9d68d4ad43986eb9c0d6122600f993906012972e8"
)

build() {
    cd $name-$version
    rm -f .cargo/config.toml
    cargo build --release --locked
    install -Dm755 target/release/rg $PKG/usr/bin/rg
    ./target/release/rg --generate man > rg.1
    install -Dm644 rg.1 $PKG/usr/share/man/man1/rg.1
    ./target/release/rg --generate complete-bash > rg.bash
    install -Dm644 rg.bash $PKG/usr/share/bash-completion/completions/rg
}

signify() {
    untrusted comment: *** OpenTUX *** public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh