Skip to content

Commit 5c5a534

Browse files
committed
Brew formula update for cloudping version v1.2.143
1 parent b9717b0 commit 5c5a534

File tree

1 file changed

+34
-8
lines changed

1 file changed

+34
-8
lines changed

Formula/cloudping.rb

+34-8
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,49 @@ class Cloudping < Formula
66
desc "cloudping identifies the cloud provider regions geographically closest and returns them in order of lowest to highest latency."
77
homepage "https://github.com/estahn/cloudping"
88
version "1.2.143"
9-
depends_on :linux
9+
10+
on_macos do
11+
if Hardware::CPU.intel?
12+
url "https://github.com/estahn/cloudping/releases/download/v1.2.143/cloudping_1.2.143_darwin_amd64.tar.gz"
13+
sha256 "8947971ecfb67e55b05d81d728f66612daca9778160207a6988bb94600cbafff"
14+
15+
def install
16+
bin.install "cloudping"
17+
end
18+
end
19+
if Hardware::CPU.arm?
20+
url "https://github.com/estahn/cloudping/releases/download/v1.2.143/cloudping_1.2.143_darwin_arm64.tar.gz"
21+
sha256 "9ae35e7b975425af34f8382a960ca25526c13ff45aa8e1c66bdb80c97f808694"
22+
23+
def install
24+
bin.install "cloudping"
25+
end
26+
end
27+
end
1028

1129
on_linux do
12-
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
13-
url "https://github.com/estahn/cloudping/releases/download/v1.2.143/cloudping_1.2.143_linux_arm64"
14-
sha256 "8e20f97407b4d82a2e5b11142d545f746d48de78d7c3c4d55bd7d878f5f829d2"
30+
if Hardware::CPU.arm? && !Hardware::CPU.is_64_bit?
31+
url "https://github.com/estahn/cloudping/releases/download/v1.2.143/cloudping_1.2.143_linux_armv6.tar.gz"
32+
sha256 "cb89bbdeac4928e8009d55e359afe408baac4f1e29ecc7f2fe61c95a02260809"
1533

1634
def install
17-
bin.install "cloudping_1.2.143_linux_arm64" => "cloudping"
35+
bin.install "cloudping"
1836
end
1937
end
2038
if Hardware::CPU.intel?
21-
url "https://github.com/estahn/cloudping/releases/download/v1.2.143/cloudping_1.2.143_linux_amd64"
22-
sha256 "3b90bd4a8ff6dcfbbb176d63b67f7ba1042b23a74cdf5df5d0f9ccbc5c825b66"
39+
url "https://github.com/estahn/cloudping/releases/download/v1.2.143/cloudping_1.2.143_linux_amd64.tar.gz"
40+
sha256 "db5fea44f56152a0e1c4e7443439bdc9caea3c3f05dbf6b541fa47a6266c6d4e"
41+
42+
def install
43+
bin.install "cloudping"
44+
end
45+
end
46+
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
47+
url "https://github.com/estahn/cloudping/releases/download/v1.2.143/cloudping_1.2.143_linux_arm64.tar.gz"
48+
sha256 "d54bbe0d23173a532bc55d78627880fe036b13808930ecaaf8abca751d227c70"
2349

2450
def install
25-
bin.install "cloudping_1.2.143_linux_amd64" => "cloudping"
51+
bin.install "cloudping"
2652
end
2753
end
2854
end

0 commit comments

Comments
 (0)