File starship.spec of Package starship-1.22
Name: starship
Version: 1.22.1
Release: 1%{?dist}
Summary: Minimal, blazing-fast, and customizable prompt for any shell
License: ISC
URL: https://starship.rs
Source0: starship-x86_64.tar.gz
Source1: starship-aarch64.tar.gz
ExclusiveArch: x86_64 aarch64
%description
Starship is the minimal, blazing-fast, and infinitely customizable prompt
for any shell! Shows the information you need, while staying sleek and
minimal. Quick installation available for Bash, Fish, ZSH, Ion, Tcsh,
Elvish, Nu, Xonsh, Cmd, and PowerShell.
%prep
%ifarch x86_64
tar -xzf %{SOURCE0}
%endif
%ifarch aarch64
tar -xzf %{SOURCE1}
%endif
%build
# Pre-built binary, no build needed
%install
install -D -m 755 starship %{buildroot}%{_bindir}/starship
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
%{buildroot}%{_bindir}/starship completions bash > %{buildroot}%{_datadir}/bash-completion/completions/starship
%{buildroot}%{_bindir}/starship completions zsh > %{buildroot}%{_datadir}/zsh/site-functions/_starship
%{buildroot}%{_bindir}/starship completions fish > %{buildroot}%{_datadir}/fish/vendor_completions.d/starship.fish
%files
%{_bindir}/starship
%{_datadir}/bash-completion/completions/starship
%{_datadir}/zsh/site-functions/_starship
%{_datadir}/fish/vendor_completions.d/starship.fish
%changelog
* Thu Jan 30 2026 Andrey <hactarr@obs> - 1.22.1-1
- Initial package for AlmaLinux 10 (1.22.x version line)