ripgrep: use cargo buildstyle

This commit is contained in:
Rasmus Thomsen 2018-10-02 00:55:09 +02:00 committed by Enno Boland
parent 5697ef5d81
commit f555f23398
1 changed files with 5 additions and 14 deletions

View File

@ -1,31 +1,22 @@
# Template file for 'ripgrep' # Template file for 'ripgrep'
pkgname=ripgrep pkgname=ripgrep
version=0.10.0 version=0.10.0
revision=1 revision=2
hostmakedepends="asciidoc cargo rust" build_style=cargo
hostmakedepends="asciidoc"
short_desc="Fast search tool inspired by ag and grep" short_desc="Fast search tool inspired by ag and grep"
maintainer="Leah Neukirchen <leah@vuxu.org>" maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Public Domain, MIT" license="Public Domain, MIT"
homepage="https://github.com/BurntSushi/ripgrep/" homepage="https://github.com/BurntSushi/ripgrep/"
distfiles="https://github.com/BurntSushi/${pkgname}/archive/${version}.tar.gz" distfiles="https://github.com/BurntSushi/${pkgname}/archive/${version}.tar.gz"
checksum=a2a6eb7d33d75e64613c158e1ae450899b437e37f1bfbd54f713b011cd8cc31e checksum=a2a6eb7d33d75e64613c158e1ae450899b437e37f1bfbd54f713b011cd8cc31e
nocross=yes
do_build() { post_install() {
cargo build --release
}
do_check() {
cargo test --release
}
do_install() {
vbin target/release/rg
vlicense LICENSE-MIT vlicense LICENSE-MIT
vlicense UNLICENSE vlicense UNLICENSE
vinstall complete/_rg 0644 usr/share/zsh/site-functions vinstall complete/_rg 0644 usr/share/zsh/site-functions
cd target/release/build/ripgrep-*/out cd target/${RUST_TARGET}/release/build/ripgrep-*/out
vman rg.1 vman rg.1
vinstall rg.bash 0644 usr/share/bash-completion/completions rg vinstall rg.bash 0644 usr/share/bash-completion/completions rg
vinstall rg.fish 0644 usr/share/fish/completions vinstall rg.fish 0644 usr/share/fish/completions