32 lines
963 B
Bash
32 lines
963 B
Bash
# Template file for 'starship'
|
|
pkgname=starship
|
|
version=1.21.1
|
|
revision=1
|
|
build_style=cargo
|
|
build_helper=qemu
|
|
make_check_args="-- --skip modules::username::tests::show_always_false" # test fails in CI
|
|
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=f543dfa3229441ca2a55b8a625ce4bad5756a896378b019f4d0f0e00cf34dcc8
|
|
make_check_pre="env HOME=${wrksrc}/fake-home"
|
|
|
|
pre_check() {
|
|
mkdir -p fake-home
|
|
}
|
|
|
|
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
|
|
}
|