From 9892e1258b1f962916e613f376c27ba1a74275d8 Mon Sep 17 00:00:00 2001 From: Gabriel Sanches Date: Thu, 27 May 2021 11:35:07 -0300 Subject: [PATCH] rustup: install completions for Cargo. --- srcpkgs/rustup/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/rustup/template b/srcpkgs/rustup/template index e4f985f74ec4..3096350e6eb8 100644 --- a/srcpkgs/rustup/template +++ b/srcpkgs/rustup/template @@ -1,7 +1,7 @@ # Template file for 'rustup' pkgname=rustup version=1.23.1 -revision=3 +revision=4 # rustup doesn't recognize this target archs="~armv*-musl" build_style=cargo @@ -24,6 +24,10 @@ post_build() { vtargetrun ./rustup completions zsh >rustup.zsh vtargetrun ./rustup completions bash >rustup.bash vtargetrun ./rustup completions fish >rustup.fish + + # install completions for Cargo (which aren't available for fish) + vtargetrun ./rustup completions zsh cargo >cargo.zsh + vtargetrun ./rustup completions bash cargo >cargo.bash } do_install() { @@ -33,6 +37,9 @@ do_install() { vcompletion rustup.fish fish vcompletion rustup.zsh zsh + vcompletion cargo.bash bash cargo + vcompletion cargo.zsh zsh cargo + vdoc README.md vlicense LICENSE-APACHE vlicense LICENSE-MIT