void-packages/srcpkgs/ripgrep/template

27 lines
735 B
Bash
Raw Normal View History

2016-09-23 18:11:39 +00:00
# Template file for 'ripgrep'
pkgname=ripgrep
2017-01-16 13:00:25 +00:00
version=0.4.0
2016-09-23 18:11:39 +00:00
revision=1
hostmakedepends="cargo rust"
short_desc="Fast search tool inspired by ag and grep"
2017-01-16 13:00:25 +00:00
maintainer="Leah Neukirchen <leah@vuxu.org>"
2016-09-23 18:11:39 +00:00
license="Public Domain, MIT"
homepage="https://github.com/BurntSushi/ripgrep/"
distfiles="https://github.com/BurntSushi/${pkgname}/archive/${version}.tar.gz"
2017-01-16 13:00:25 +00:00
checksum=e93a6b59e38bc7912249175ab58ad7af0052a444b3c2c08a846fabba003414d6
2016-09-23 18:11:39 +00:00
nocross=yes
do_build() {
cargo build --release
2016-09-26 11:37:15 +00:00
}
2016-09-23 18:11:39 +00:00
do_install() {
vman doc/rg.1
vbin target/release/rg
vlicense LICENSE-MIT
vlicense UNLICENSE
2017-01-16 13:00:25 +00:00
cd target/release/build/*/out
vinstall _rg 0644 usr/share/zsh/site-functions
vinstall rg.bash-completion 0644 usr/share/bash-completion/completions rg
2016-09-23 18:11:39 +00:00
}