homebrew-core/Formula/pipebench.rb

38 lines
2.0 KiB
Ruby

class Pipebench < Formula
desc "Measure the speed of STDIN/STDOUT communication"
homepage "https://www.habets.pp.se/synscan/programs_pipebench.html"
# Upstream server behaves oddly: https://github.com/Homebrew/homebrew/issues/40897
# url "http://www.habets.pp.se/synscan/files/pipebench-0.40.tar.gz"
url "https://deb.debian.org/debian/pool/main/p/pipebench/pipebench_0.40.orig.tar.gz"
sha256 "ca764003446222ad9dbd33bbc7d94cdb96fa72608705299b6cc8734cd3562211"
license "GPL-2.0-or-later"
livecheck do
url :homepage
regex(/href=.*?pipebench[._-]v?(\d+(?:\.\d+)+)\.t/i)
end
bottle do
sha256 cellar: :any_skip_relocation, arm64_monterey: "7704012e0f066c3a9ffa837df9e1f346a3dacbd37047aefce2d4d3f427e00562"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "5bb970ea3b27cad7960f3f60a86b3a55ad36d29cf11169019c5057e803d8ea75"
sha256 cellar: :any_skip_relocation, monterey: "f367e67b0def209b0553b577a767a8451f91f21d321f1addf6f01e5920c162dc"
sha256 cellar: :any_skip_relocation, big_sur: "5e5856f67d0e9f663d04895b33cf50406b8fc584f2d01cf9c364b8a549620184"
sha256 cellar: :any_skip_relocation, catalina: "a7a63d8cdd084919304019c06290b7b808f637071c30f688219b47e2cc49f469"
sha256 cellar: :any_skip_relocation, mojave: "7489b10153744c61c74be048fb8c5d0acb4abae2f03437a0a633a312253c3345"
sha256 cellar: :any_skip_relocation, high_sierra: "9ece6aaf7dcf0e1dbdbba28979ffbb6384f1d69aee8d194db2e009994c655cf2"
sha256 cellar: :any_skip_relocation, sierra: "213e31962005a876277c6f8edd3c9cd8964c253496f7945d48aef7338c76277e"
sha256 cellar: :any_skip_relocation, el_capitan: "353cabdaf04a41e2169c1e489cd038f9fbe7f33cfd24a5a0b3068449ccc3446d"
sha256 cellar: :any_skip_relocation, x86_64_linux: "2230dc11d838a89ac74db6c346dee27398a0d4fb7377c93ca9f27876f51a6591"
end
def install
system "make"
bin.install "pipebench"
man1.install "pipebench.1"
end
test do
system "#{bin}/pipebench", "-h"
end
end