From f555f23398ed91caa07bacbea3f54275ed68d51b Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Tue, 2 Oct 2018 00:55:09 +0200 Subject: [PATCH] ripgrep: use cargo buildstyle --- srcpkgs/ripgrep/template | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/srcpkgs/ripgrep/template b/srcpkgs/ripgrep/template index ec36fee8697..482e052f67b 100644 --- a/srcpkgs/ripgrep/template +++ b/srcpkgs/ripgrep/template @@ -1,31 +1,22 @@ # Template file for 'ripgrep' pkgname=ripgrep version=0.10.0 -revision=1 -hostmakedepends="asciidoc cargo rust" +revision=2 +build_style=cargo +hostmakedepends="asciidoc" short_desc="Fast search tool inspired by ag and grep" maintainer="Leah Neukirchen " license="Public Domain, MIT" homepage="https://github.com/BurntSushi/ripgrep/" distfiles="https://github.com/BurntSushi/${pkgname}/archive/${version}.tar.gz" checksum=a2a6eb7d33d75e64613c158e1ae450899b437e37f1bfbd54f713b011cd8cc31e -nocross=yes -do_build() { - cargo build --release -} - -do_check() { - cargo test --release -} - -do_install() { - vbin target/release/rg +post_install() { vlicense LICENSE-MIT vlicense UNLICENSE 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 vinstall rg.bash 0644 usr/share/bash-completion/completions rg vinstall rg.fish 0644 usr/share/fish/completions