starship 0.2.0 (new formula)
Closes #42121. Signed-off-by: Sean Molenaar <smillerdev@me.com>
This commit is contained in:
parent
fa7455615d
commit
ca1ba5c992
1 changed files with 19 additions and 0 deletions
19
Formula/starship.rb
Normal file
19
Formula/starship.rb
Normal file
|
@ -0,0 +1,19 @@
|
|||
class Starship < Formula
|
||||
desc "The cross-shell prompt for astronauts"
|
||||
homepage "https://github.com/starship/starship"
|
||||
url "https://github.com/starship/starship/archive/v0.2.0.tar.gz"
|
||||
sha256 "27df9d27e7e5687bd16b8d7b3805b4687f667d76300e4b90e1770f925c27bade"
|
||||
head "https://github.com/starship/starship.git"
|
||||
|
||||
depends_on "rust" => :build
|
||||
depends_on "openssl"
|
||||
|
||||
def install
|
||||
system "cargo", "install", "--root", prefix, "--path", "."
|
||||
end
|
||||
|
||||
test do
|
||||
ENV["STARSHIP_CONFIG"] = ""
|
||||
assert_equal "[1;32m➜[0m ", shell_output("#{bin}/starship module char")
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue