Skip to content

Commit 20d9479

Browse files
committed
erishell 2.0.0 (new cask)
1 parent 73da1a9 commit 20d9479

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Formula/e/erishell.rb

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
class Erishell < Formula
2+
desc "Encoding for Robust Immutable Storage utility"
3+
homepage "https://eris.codeberg.page/"
4+
url "https://codeberg.org/eris/eris-go/archive/v2.0.0.tar.gz"
5+
sha256 "455f00015b8cd33565a2f18cd8f98010508ff2eb824702be05378904f4d21663"
6+
license "BSD-3-Clause"
7+
8+
depends_on "go" => :build
9+
10+
def install
11+
system "go", "build", *std_go_args(ldflags: "-s -w"), "./cmd/erishell"
12+
system "gunzip", "erishell.1.gz"
13+
man1.install "erishell.1" => "erishell.1"
14+
end
15+
16+
test do
17+
# Split up the string otherwise formatting bureaucrats will reject the formula.
18+
a = "BIADFUKDPYKJNLGCVSIIDI3FVKND7MO5AGOCXBK2C4ITT5MAL4LSC"
19+
b = "ZF62B4PDOFQCLLNL7AXXSJFGINUYXVGVTDCQ2V7S7W5S234WFXCJ4"
20+
assert_equal "urn:eris:#{a}#{b} \n",
21+
shell_output("#{bin}/erishell discard- buffer- convergent- encode- swap- pop-")
22+
end
23+
end

0 commit comments

Comments
 (0)