36 lines
983 B
Bash
36 lines
983 B
Bash
# Template file for 'starship'
|
|
pkgname=starship
|
|
version=1.10.3
|
|
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"
|
|
distfiles="https://github.com/starship/starship/archive/refs/tags/v${version}.tar.gz"
|
|
checksum=39c5f8f88a8aa6d32575ddb26017572f2683fae129b9be5442acbae74019ea5e
|
|
|
|
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
|
|
}
|
|
|
|
do_check() {
|
|
mkdir -p fake-home
|
|
HOME="${wrksrc}/fake-home" cargo test --release --target ${RUST_TARGET}
|
|
}
|
|
|
|
post_install() {
|
|
vcompletion starship.bash bash
|
|
vcompletion starship.fish fish
|
|
vcompletion starship.zsh zsh
|
|
|
|
vlicense LICENSE
|
|
}
|