Skip to content

Commit

Permalink
universe/rust: simplify shell completions
Browse files Browse the repository at this point in the history
[ commit 3353d625e0b0b08424b479f8ce6ff35123578385 ]
  • Loading branch information
sertonix authored and kholmanskikh committed Apr 12, 2024
1 parent f03507f commit 8977c7d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions universe/rust/APKBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pkgname=rust
pkgver=1.77.0
_llvmver=17
_bootver=1.76.0
pkgrel=0
pkgrel=1
pkgdesc="Rust Programming Language toolchain"
url="https://www.rust-lang.org/"
arch="all"
Expand Down Expand Up @@ -417,21 +417,19 @@ rustfmt() {
}

_cargo_bashcomp() {
default_bashcomp

pkgdesc="Bash completions for cargo"
license="Apache-2.0 MIT"
depends=""
install_if="cargo=$pkgver-r$pkgrel bash-completion"

amove usr/share/bash-completion
}

_cargo_zshcomp() {
default_zshcomp

pkgdesc="ZSH completions for cargo"
license="Apache-2.0 MIT"
depends=""
install_if="cargo=$pkgver-r$pkgrel zsh"

amove usr/share/zsh/site-functions/_cargo
}

_cargo_doc() {
Expand Down

0 comments on commit 8977c7d

Please sign in to comment.