void-packages/srcpkgs/ripgrep/template
2018-08-04 22:47:29 -03:00

32 lines
835 B
Bash

# Template file for 'ripgrep'
pkgname=ripgrep
version=0.9.0
revision=1
hostmakedepends="asciidoc 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=871a24ad29a4c5b6d82f6049156db2662e6a9820cca6f361547b8ab8bc1be7ae
nocross=yes
do_build() {
cargo build --release
}
do_check() {
cargo test --release
}
do_install() {
vbin target/release/rg
vlicense LICENSE-MIT
vlicense UNLICENSE
vinstall complete/_rg 0644 usr/share/zsh/site-functions
cd target/release/build/ripgrep-*/out
vman rg.1
vinstall rg.bash 0644 usr/share/bash-completion/completions rg
vinstall rg.fish 0644 usr/share/fish/completions
}