-
Notifications
You must be signed in to change notification settings - Fork 0
/
speedtest.rb
33 lines (28 loc) · 1.06 KB
/
speedtest.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
class Speedtest < Formula
desc "Runs your internet connection speed tests"
homepage "https://github.com/mvrpl/speed-test"
version "1.5"
license "GPL-3.0"
livecheck do
url :homepage
regex(/v?(\d+(?:\.\d+)+[a-z]?)/i)
strategy :github_latest
end
if OS.linux? && Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/mvrpl/speed-test/releases/download/1.5/speed-test_Linux_x86_64.tar.gz"
sha256 "a198aab7a460ff2beccc5c64f5e6c438191d357fb1946694a4287179cee33522"
end
if OS.mac?
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
url "https://github.com/mvrpl/speed-test/releases/download/1.5/speed-test_Darwin_arm64.tar.gz"
sha256 "7639208be96bc4090eec82ae3920b1362a10cde3c73e67ee65dea2aa9b19d8ae"
end
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
url "https://github.com/mvrpl/speed-test/releases/download/1.5/speed-test_Darwin_x86_64.tar.gz"
sha256 "41e024a1030d087424ad51022e425a6fa07d63fbaafbe142638ffb1ed1d698de"
end
end
def install
bin.install "speedtest"
end
end