jackett 0.22.1382
[Homebrew/homebrew-core.git] / Formula / b / b3sum.rb
blobcfbb0561ba1cf57acd4b190656440707a6cdb4ea
1 class B3sum < Formula
2   desc "Command-line implementation of the BLAKE3 cryptographic hash function"
3   homepage "https://github.com/BLAKE3-team/BLAKE3"
4   url "https://github.com/BLAKE3-team/BLAKE3/archive/refs/tags/1.5.5.tar.gz"
5   sha256 "6feba0750efc1a99a79fb9a495e2628b5cd1603e15f56a06b1d6cb13ac55c618"
6   license any_of: ["CC0-1.0", "Apache-2.0"]
8   bottle do
9     sha256 cellar: :any_skip_relocation, arm64_sequoia: "9082de4e1d3f9390c44ff4f38d4e379509b2fec34517a3e1f9a5a9a09c0ada96"
10     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "71e34b5afc894772d32d0d983499bd86d5ddff03023cf637d3390db4202cbc49"
11     sha256 cellar: :any_skip_relocation, arm64_ventura: "b6db680bdafce5253681b4a7840b01367146682dc258f48a4c2a438f47595860"
12     sha256 cellar: :any_skip_relocation, sonoma:        "6230145a2c86105180567a79296ebbae941f7091444238e83dac659a855d2df9"
13     sha256 cellar: :any_skip_relocation, ventura:       "9a4948a3ead4ee1ffffb910b032627da971bb343c59bb3a64821c6c96c000a94"
14     sha256 cellar: :any_skip_relocation, x86_64_linux:  "064f2d5353a0cb664ebdb227d00cd6444e5fb3b0adb2a5e9f10ea9b0fd4cda83"
15   end
17   depends_on "rust" => :build
19   def install
20     cd "b3sum" do
21       system "cargo", "install", *std_cargo_args
22     end
23   end
25   test do
26     (testpath/"test.txt").write <<~EOS
27       content
28     EOS
30     output = shell_output("#{bin}/b3sum test.txt")
31     assert_equal "df0c40684c6bda3958244ee330300fdcbc5a37fb7ae06fe886b786bc474be87e  test.txt", output.strip
32   end
33 end