homebrew-core/Formula/starship.rb
2019-08-17 12:07:23 +02:00

26 lines
899 B
Ruby
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

class Starship < Formula
desc "The cross-shell prompt for astronauts"
homepage "https://github.com/starship/starship"
url "https://github.com/starship/starship/archive/v0.10.1.tar.gz"
sha256 "ef09ad28ef73619b7d86bc6c5713a2e423c1fa4d6403c2983e8692e6b4fc2a98"
head "https://github.com/starship/starship.git"
bottle do
cellar :any
sha256 "3ddf9eb9dd2ad0a1c1324fceffe68ccbe67662990543f142ceef95032e60bf06" => :mojave
sha256 "43521af7cb1e226843993485a3873ab5e55a7f9ebc58f818f1f1666ac3386198" => :high_sierra
sha256 "29694532b055d781b4873ce1940a15c5631e6237550e451bc8fc21cb97bf760d" => :sierra
end
depends_on "rust" => :build
depends_on "openssl"
def install
system "cargo", "install", "--root", prefix, "--path", "."
end
test do
ENV["STARSHIP_CONFIG"] = ""
assert_equal "➜ ", shell_output("#{bin}/starship module character")
end
end