26 lines
735 B
Bash
26 lines
735 B
Bash
# Template file for 'ripgrep'
|
|
pkgname=ripgrep
|
|
version=0.5.1
|
|
revision=1
|
|
hostmakedepends="cargo rust"
|
|
short_desc="Fast search tool inspired by ag and grep"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="Public Domain, MIT"
|
|
homepage="https://github.com/BurntSushi/ripgrep/"
|
|
distfiles="https://github.com/BurntSushi/${pkgname}/archive/${version}.tar.gz"
|
|
checksum=e0724d40f069580bac9f28cbf6005020fdc1b80e5d15fb69679d50ca341116f9
|
|
nocross=yes
|
|
|
|
do_build() {
|
|
cargo build --release
|
|
}
|
|
do_install() {
|
|
vman doc/rg.1
|
|
vbin target/release/rg
|
|
vlicense LICENSE-MIT
|
|
vlicense UNLICENSE
|
|
|
|
cd target/release/build/*/out
|
|
vinstall _rg 0644 usr/share/zsh/site-functions
|
|
vinstall rg.bash-completion 0644 usr/share/bash-completion/completions rg
|
|
}
|