homebrew-core/Formula/osx-cpu-temp.rb

32 lines
1.7 KiB
Ruby

class OsxCpuTemp < Formula
desc "Outputs current CPU temperature for OSX"
homepage "https://github.com/lavoiesl/osx-cpu-temp"
url "https://github.com/lavoiesl/osx-cpu-temp/archive/1.1.0.tar.gz"
sha256 "94b90ce9a1c7a428855453408708a5557bfdb76fa45eef2b8ded4686a1558363"
license "GPL-2.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_ventura: "5189807136b9dce5f62994ea3451ab91f560fcdd665e35f50387c19667af17d4"
sha256 cellar: :any_skip_relocation, arm64_monterey: "49df01d45be6aa2740ee6e4be207d34586eb84626610fdd53c723d4e071e4f77"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "d072b980bb252ce0c91fbfafdbcf20f0119d003cbfe35779c78fc262fec8a509"
sha256 cellar: :any_skip_relocation, ventura: "9ee650236f7418567dc7544586870cd82902ebe42572df55c0170c5e22c38d44"
sha256 cellar: :any_skip_relocation, monterey: "734f1c9e1d3e8486d862fc2186ba476807d3a8da54c5cb673d6ca3c29db59b09"
sha256 cellar: :any_skip_relocation, big_sur: "d4bcaab258eb1c75078e767a24c615bc82274e672ce6fd15c2a766b0b0bd8a46"
sha256 cellar: :any_skip_relocation, catalina: "e1df41402ed817941f591a5cc094fe4491b092de8d5177dd363eccecff811bec"
sha256 cellar: :any_skip_relocation, mojave: "c0301d2c47c23bc8ed0042fbaf447e82ca8dbbf10b1939d9a4f684961a24d0d2"
sha256 cellar: :any_skip_relocation, high_sierra: "2255aa28242ce07a62fc0eabaf146592fb70745e641cfc775a21f99841cec625"
sha256 cellar: :any_skip_relocation, sierra: "d68a47b126eaee8f75d281785322877055187f89540eb2744b9cd4da15ca6a69"
end
depends_on :macos
def install
system "make"
bin.install "osx-cpu-temp"
end
test do
assert_match "°C", shell_output("#{bin}/osx-cpu-temp -C")
end
end