homebrew-core/Formula/jid.rb

33 lines
1.8 KiB
Ruby

class Jid < Formula
desc "Json incremental digger"
homepage "https://github.com/simeji/jid"
url "https://github.com/simeji/jid/archive/v0.7.6.tar.gz"
sha256 "0912050b3be3760804afaf7ecd6b42bfe79e7160066587fbc0afa5324b03fb48"
license "MIT"
bottle do
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_ventura: "2aa9387c65b9577a1e7d6fa2a73e9da8102809d2275fa1d97db02c0ed6622bc0"
sha256 cellar: :any_skip_relocation, arm64_monterey: "af3284fbdac510d46260cd52b4b1db36cb2baa71f02ee68758bea6be4af5ffb3"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "37f25dc38d57a971fb609224c33802bfa4213b58d825b188a67eb653af1c9e2f"
sha256 cellar: :any_skip_relocation, ventura: "0966f7f8749c7aa40838d6658054292523d414aa2edf01d9483c35092fac2d23"
sha256 cellar: :any_skip_relocation, monterey: "ad33b70ab6cbfb324c1842d3b1294beb011b04c85086e9c8aa4fdfbe1c6aedc4"
sha256 cellar: :any_skip_relocation, big_sur: "703bee89d514891dec82186680f2ee9837b1599721c3d68405fd4c72d015a811"
sha256 cellar: :any_skip_relocation, catalina: "0b45fe9c59facbc6b2bbacf4b52927934b09d6e2050ad3a5b5a32434a4bd4751"
sha256 cellar: :any_skip_relocation, mojave: "2980bf16f4376b7bdfc27e0e6bbe45d9e1f8aca8a143f6f7b6fd939eb6892617"
sha256 cellar: :any_skip_relocation, high_sierra: "d429ac5400fd67dcee12e5fe962e84f535858c7ecb3235ee01f8a54dc44e7a9e"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2c2d04634a851f7ad8d10869571b6820cd31da2ef068a5c7fd6b03f512f5dc4c"
end
depends_on "go" => :build
def install
system "go", "build", "-ldflags", "-s -w", "-trimpath", "-o", bin/"jid", "cmd/jid/jid.go"
prefix.install_metafiles
end
test do
assert_match "jid version v#{version}", shell_output("#{bin}/jid --version")
end
end