-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcrc-squared.rb
59 lines (51 loc) · 2.06 KB
/
crc-squared.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class CrcSquared < Formula
desc "Light speed crc32c checksums"
homepage "https://github.com/chanzuckerberg/crc-squared"
version "0.2.0"
on_macos do
if Hardware::CPU.intel?
url "https://github.com/chanzuckerberg/crc-squared/releases/download/v0.2.0/crc-squared_0.2.0_darwin_amd64.tar.gz"
sha256 "5d9e23e09bc4b32ee94a933a45cc4fd3fb6976fac82f403d6d1ed0058373efa6"
def install
bin.install "crc-squared"
bash_completion.install "completions/bash" => "crc-squared"
zsh_completion.install "completions/zsh" => "_crc-squared"
end
end
if Hardware::CPU.arm?
url "https://github.com/chanzuckerberg/crc-squared/releases/download/v0.2.0/crc-squared_0.2.0_darwin_arm64.tar.gz"
sha256 "c6336a366d8814ec95844a4007631211e6b6b530839297ea10dd305baeb856c0"
def install
bin.install "crc-squared"
bash_completion.install "completions/bash" => "crc-squared"
zsh_completion.install "completions/zsh" => "_crc-squared"
end
end
end
on_linux do
if Hardware::CPU.intel?
url "https://github.com/chanzuckerberg/crc-squared/releases/download/v0.2.0/crc-squared_0.2.0_linux_amd64.tar.gz"
sha256 "b7b8ba441916e2710cedbfe697bb82f203cc45cb6d3bf2810e6831ae517aad8f"
def install
bin.install "crc-squared"
bash_completion.install "completions/bash" => "crc-squared"
zsh_completion.install "completions/zsh" => "_crc-squared"
end
end
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/chanzuckerberg/crc-squared/releases/download/v0.2.0/crc-squared_0.2.0_linux_arm64.tar.gz"
sha256 "6814bc7d16a5f8f3c49ba5eac8f5b1988ef9e86b3a5b25dc69823a092a2f7b96"
def install
bin.install "crc-squared"
bash_completion.install "completions/bash" => "crc-squared"
zsh_completion.install "completions/zsh" => "_crc-squared"
end
end
end
test do
system "#{bin}/crc-squared --version"
end
end