22505e3a4f
Closes #43370. Signed-off-by: Chongyu Zhu <i@lembacon.com>
19 lines
577 B
Ruby
19 lines
577 B
Ruby
class SpeedtestCli < Formula
|
|
desc "Command-line interface for https://speedtest.net bandwidth tests"
|
|
homepage "https://github.com/sivel/speedtest-cli"
|
|
url "https://github.com/sivel/speedtest-cli/archive/v2.1.2.tar.gz"
|
|
sha256 "a877142eec0ee8dda86519c36fe789480ed6fa603b016b620affd77fbf79b0d9"
|
|
head "https://github.com/sivel/speedtest-cli.git"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
bin.install "speedtest.py" => "speedtest"
|
|
bin.install_symlink "speedtest" => "speedtest-cli"
|
|
man1.install "speedtest-cli.1"
|
|
end
|
|
|
|
test do
|
|
system bin/"speedtest"
|
|
end
|
|
end
|