28 lines
853 B
Ruby
28 lines
853 B
Ruby
class Neofetch < Formula
|
|
desc "Fast, highly customisable system info script"
|
|
homepage "https://github.com/dylanaraps/neofetch"
|
|
url "https://github.com/dylanaraps/neofetch/archive/7.1.0.tar.gz"
|
|
sha256 "58a95e6b714e41efc804eca389a223309169b2def35e57fa934482a6b47c27e7"
|
|
license "MIT"
|
|
head "https://github.com/dylanaraps/neofetch.git", branch: "master"
|
|
|
|
bottle do
|
|
rebuild 2
|
|
sha256 cellar: :any_skip_relocation, all: "78eb3e99dfde7f5fb1c3b192804a6d345f428c9effa6ea6ba54d7e5b7254387f"
|
|
end
|
|
|
|
on_macos do
|
|
depends_on "screenresolution"
|
|
end
|
|
|
|
def install
|
|
inreplace "neofetch", "/usr/local", HOMEBREW_PREFIX
|
|
system "make", "install", "PREFIX=#{prefix}"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/neofetch", "--config", "none", "--color_blocks", "off",
|
|
"--disable", "wm", "de", "term", "gpu"
|
|
end
|
|
end
|