void-packages/srcpkgs/starship/template
Érico Rolim 45d572a03f starship: simplify completion generation.
Use qemu build_helper and vcompletion.
2020-07-28 04:24:40 +00:00

35 lines
969 B
Bash

# Template file for 'starship'
pkgname=starship
version=0.44.0
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=b002fa0e2b34ad59330a543461a51648751db4ae8d439d58065a3b9656772fe3
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
}