7d755ef855
Closes #9073. Signed-off-by: JCount <JCount42@gmail.com>
21 lines
712 B
Ruby
21 lines
712 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/v1.0.2.tar.gz"
|
|
sha256 "41f50ffb082322eedcfa8b33d0354fc5f1d9fcdc09be76b09b89b293397629c7"
|
|
head "https://github.com/sivel/speedtest-cli.git"
|
|
|
|
bottle :unneeded
|
|
|
|
def install
|
|
bin.install "speedtest.py" => "speedtest"
|
|
# Previous versions of the formula used "speedtest_cli" and "speedtest-cli"
|
|
bin.install_symlink "speedtest" => "speedtest_cli"
|
|
bin.install_symlink "speedtest" => "speedtest-cli"
|
|
man1.install "speedtest-cli.1"
|
|
end
|
|
|
|
test do
|
|
system bin/"speedtest"
|
|
end
|
|
end
|