void-packages/srcpkgs/starship/template

31 lines
898 B
Bash

# Template file for 'starship'
pkgname=starship
version=1.17.1
revision=1
build_style=cargo
build_helper=qemu
hostmakedepends="cmake pkg-config"
depends="git"
checkdepends="git fish-shell"
short_desc="Minimal, fast and customizable cross-shell prompt"
maintainer="cinerea0 <cinerea0@protonmail.com>"
license="ISC"
homepage="https://starship.rs"
changelog="https://raw.githubusercontent.com/starship/starship/master/CHANGELOG.md"
distfiles="https://github.com/starship/starship/archive/refs/tags/v${version}.tar.gz"
checksum=2b2fc84feb0197104982e8baf17952449375917da66b7a98b3e3fd0be63e5dba
do_check() {
mkdir -p fake-home
HOME="${wrksrc}/fake-home" cargo test --release --target ${RUST_TARGET}
}
post_install() {
for shell in bash fish zsh; do
vtargetrun ${DESTDIR}/usr/bin/starship completions ${shell} > starship.${shell}
vcompletion starship.${shell} ${shell}
done
vlicense LICENSE
}