homebrew-core/Formula/pipes-sh.rb

34 lines
1.2 KiB
Ruby

class PipesSh < Formula
desc "Animated pipes terminal screensaver"
homepage "https://github.com/pipeseroni/pipes.sh"
url "https://github.com/pipeseroni/pipes.sh/archive/v1.3.0.tar.gz"
sha256 "532976dd8dc2d98330c45a8bcb6d7dc19e0b0e30bba8872dcce352361655a426"
license "MIT"
head "https://github.com/pipeseroni/pipes.sh.git"
livecheck do
url :head
regex(/^v?(\d+(?:\.\d+)+)$/i)
end
bottle do
cellar :any_skip_relocation
sha256 "777bd274db0376138c72b6d89948ad3b19b622f069477a74cbc8b0ad9e320d72" => :big_sur
sha256 "68d379998c00ca3662db8047c1c6e649491d65d851af264e04ce7cbdb7cbd2e2" => :catalina
sha256 "b78492e9f13a815dc97200b33c4e228292a4679eb6d048c1094c64aa46504879" => :mojave
sha256 "2793ad5fb825b4f805a4731c7028cbcb2ca5e9dd904133df0cce7481c5961322" => :high_sierra
sha256 "2793ad5fb825b4f805a4731c7028cbcb2ca5e9dd904133df0cce7481c5961322" => :sierra
sha256 "2793ad5fb825b4f805a4731c7028cbcb2ca5e9dd904133df0cce7481c5961322" => :el_capitan
end
depends_on "bash"
def install
system "make", "install", "PREFIX=#{prefix}"
end
test do
assert_equal version.to_s, shell_output("#{bin}/pipes.sh -v").strip.split[-1]
end
end