forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchey.rb
26 lines (22 loc) · 814 Bytes
/
archey.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
class Archey < Formula
desc "Graphical system information display for macOS"
homepage "https://obihann.github.io/archey-osx/"
url "https://github.com/obihann/archey-osx/archive/1.6.0.tar.gz"
sha256 "0f0ffcf8c5f07610b98f0351dcb38bb8419001f40906d5dc4bfd28ef12dbd0f8"
revision 1
head "https://github.com/obihann/archey-osx.git"
bottle :unneeded
# Fix double percent sign in battery output, remove in next release
unless build.head?
patch do
url "https://github.com/obihann/archey-osx/commit/cd125547d0936f066b64616553269bf647348e53.diff?full_index=1"
sha256 "c03b80e4d5aa114b81ac04bfa77c46055fe01764ae877a8a061f3d43c9de8a72"
end
end
def install
bin.install "bin/archey"
end
test do
assert_match "Archey OS X 1", shell_output("#{bin}/archey --help")
end
end