homebrew-core/Formula/speedtest-cli.rb

21 lines
600 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"
license "Apache-2.0"
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