Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37849272
en ru br
ALT Linux repos
S:1.16.0-alt1

Group :: Shells
RPM: starship

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%ifarch i586 armh
%def_without check
%else
%def_with check
%endif

Name: starship
Version: 1.13.1
Release: alt1
Summary: The minimal, blazing-fast, and infinitely customizable prompt for any shell
License: ISC
Group: Shells
Url: https://github.com/starship/starship
Source: %name-%version.tar
# fixed build due to https://github.com/starship/starship/issues/4958
Patch1: fix-starship-issue-4958.patch

BuildRequires: rust-cargo
BuildRequires: cmake

%if_with check
BuildRequires: git
%endif

%description
%summary.

%prep
%setup
%patch1 -p1
mkdir -p .cargo
cat >> .cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --offline --release

%install
cargo install --path . --root %buildroot/%_usr

%check
%buildroot%_bindir/%name print-config > %name.toml
export STARSHIP_CONFIG=%name.toml
export TERM=xterm
# skip randomly failing test
cargo test -- --skip expiration_date_set

%files
%_bindir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin