37 lines
1.0 KiB
Bash
37 lines
1.0 KiB
Bash
# Template file for 'starship'
|
|
pkgname=starship
|
|
version=1.11.0
|
|
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=7b408ef8a2ab47d7a7d0e120889bf12c8f2a965796f8a027d8b2176287fdec6b
|
|
|
|
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
|
|
}
|