File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments