homebrew-core/Formula/starship.rb

27 lines
886 B
Ruby
Raw Normal View History

class Starship < Formula
desc "The cross-shell prompt for astronauts"
homepage "https://starship.rs"
url "https://github.com/starship/starship/archive/v0.16.0.tar.gz"
sha256 "eadf8fc68134ed3c23b558ea0b6701054149ae23d9149613dfc8bed28cc7173d"
head "https://github.com/starship/starship.git"
2019-08-06 21:03:11 +00:00
bottle do
cellar :any
2019-09-08 05:35:46 +00:00
sha256 "998ace27edf7926741168c3f7bb35503709a7a4046cccbaec1a283bbe31ac611" => :mojave
sha256 "829e17ff01ba74a13d05ee137d9b9594105ead917f0057d57d2f6195b9e0f435" => :high_sierra
sha256 "bb6a290c10cadf29972414bdf440fc3d2cd5256a9f0ccc0cd66c19d7a08c6940" => :sierra
2019-08-06 21:03:11 +00:00
end
depends_on "rust" => :build
2019-09-04 13:41:22 +00:00
depends_on "openssl@1.1"
def install
system "cargo", "install", "--root", prefix, "--path", "."
end
test do
ENV["STARSHIP_CONFIG"] = ""
assert_equal " ", shell_output("#{bin}/starship module character")
end
end