Skip to content

Commit

Permalink
starship: update to 0.42.0, add completions.
Browse files Browse the repository at this point in the history
- Completions are generated like the ones for rustup.
  • Loading branch information
ericonr committed Jun 10, 2020
1 parent b4c67d5 commit 519d3db
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions srcpkgs/starship/template
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Template file for 'starship'
pkgname=starship
version=0.41.3
version=0.42.0
revision=1
build_style=cargo
build_helper="rust"
Expand All @@ -11,8 +11,20 @@ maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
license="ISC"
homepage="https://starship.rs"
distfiles="https://github.com/starship/starship/archive/v${version}.tar.gz"
checksum=ce2c86e3f3a7d8cd2e1a204e7ef491473fdd93c41bb43a4718fdd66039f7bc99
checksum=cf7b5848949bc1e61dc771ef2a429e4ccb8d339e1ca705bdf521fc4a4fc96309

post_install() {
if ! [ "$CROSS_BUILD" ]; then
# generate shell completions
ln -s target/${RUST_TARGET}/release/starship starship
./starship completions zsh > starship.zsh
./starship completions bash > starship.bash
./starship completions fish > starship.fish

vinstall starship.zsh 0644 usr/share/zsh/site-functions/ _starship
vinstall starship.bash 0644 usr/share/bash-completion/completions/ starship
vinstall starship.fish 0644 usr/share/fish/vendor_completions.d/
fi

vlicense LICENSE
}

0 comments on commit 519d3db

Please sign in to comment.