Skip to content

Commit

Permalink
stellar-cli 21.3.0 (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
leighmcculloch committed Aug 9, 2024
1 parent bf57fa2 commit cddda1a
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Formula/s/stellar-cli.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
class StellarCli < Formula
desc "Stellar command-line tool for interacting with the Stellar network"
homepage "https://developers.stellar.org"
url "https://github.com/stellar/stellar-cli/archive/refs/tags/v21.3.0.tar.gz"
sha256 "3bbd1eba92ca5f6dd451a8606520b40cc71e2796b0efa32303c52a7901a2a944"
license "Apache-2.0"
head "https://github.com/stellar/stellar-cli.git", branch: "main"

depends_on "pkg-config" => :build
depends_on "rust" => :build
depends_on "openssl@3"

def install
system "cargo", "install", "--bin=stellar", "--features=opt", *std_cargo_args(path: "cmd/stellar-cli")
end

test do
assert_match version.to_s, shell_output("#{bin}/stellar version")
assert_match "TransactionEnvelope", shell_output("#{bin}/stellar xdr types list")
end
end

0 comments on commit cddda1a

Please sign in to comment.