36 lines
911 B
Ruby
36 lines
911 B
Ruby
class Archey < Formula
|
|
desc "Graphical system information display for macOS"
|
|
homepage "https://obihann.github.io/archey-osx/"
|
|
license "GPL-2.0"
|
|
revision 1
|
|
head "https://github.com/obihann/archey-osx.git"
|
|
|
|
stable do
|
|
url "https://github.com/obihann/archey-osx/archive/1.6.0.tar.gz"
|
|
sha256 "0f0ffcf8c5f07610b98f0351dcb38bb8419001f40906d5dc4bfd28ef12dbd0f8"
|
|
|
|
# Fix double percent sign in battery output
|
|
patch do
|
|
url "https://github.com/obihann/archey-osx/commit/cd125547d0936f066b64616553269bf647348e53.diff?full_index=1"
|
|
sha256 "c03b80e4d5aa114b81ac04bfa77c46055fe01764ae877a8a061f3d43c9de8a72"
|
|
end
|
|
end
|
|
|
|
livecheck do
|
|
url :head
|
|
regex(/^v?(\d+(?:\.\d+)+)$/i)
|
|
end
|
|
|
|
bottle :unneeded
|
|
|
|
deprecate! date: "2017-04-28"
|
|
|
|
def install
|
|
bin.install "bin/archey"
|
|
end
|
|
|
|
test do
|
|
assert_match "Archey OS X 1", shell_output("#{bin}/archey --help")
|
|
end
|
|
end
|