void-packages/srcpkgs/starship/template
Olaf Mersmann 4d4b926a3e starship: update to 0.46.2.
Closes: #25894 [via git-merge-pr]
2020-10-26 14:16:16 -04:00

35 lines
969 B
Bash

# Template file for 'starship'
pkgname=starship
version=0.46.2
revision=1
build_style=cargo
build_helper=qemu
hostmakedepends="pkg-config"
makedepends="libgit2-devel"
checkdepends="git"
short_desc="Minimal, fast and customizable cross-shell prompt"
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=39301c8118239eda7b6d8dbcae498f28bfd901932e69003c249d99ee7989c1bb
post_build() {
STARSHIP="target/${RUST_TARGET}/release/starship"
vtargetrun ${STARSHIP} completions zsh >starship.zsh
vtargetrun ${STARSHIP} completions bash >starship.bash
vtargetrun ${STARSHIP} completions fish >starship.fish
}
pre_check() {
[ -L target/debug ] && unlink target/debug
ln -s release target/debug
}
post_install() {
vcompletion starship.bash bash
vcompletion starship.fish fish
vcompletion starship.zsh zsh
vlicense LICENSE
}