fastfetch 1.7.2 (new formula)

Closes #112075.

Signed-off-by: Rui Chen <rui@chenrui.dev>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
master
Carter Li 2022-10-01 12:00:22 +08:00 committed by BrewTestBot
parent 83307888e8
commit 17e801070d
No known key found for this signature in database
GPG Key ID: 82D7D104050B0F0F
1 changed files with 23 additions and 0 deletions

23
Formula/fastfetch.rb Normal file
View File

@ -0,0 +1,23 @@
class Fastfetch < Formula
desc "Like neofetch, but much faster because written in C"
homepage "https://github.com/LinusDierheimer/fastfetch"
url "https://github.com/LinusDierheimer/fastfetch/archive/refs/tags/1.7.2.tar.gz"
sha256 "f0778cdc6d33f5399bb82a8689b816ec3ff1d6b3eb74488e88d7a92a0bd3f7b6"
license "MIT"
head "https://github.com/LinusDierheimer/fastfetch.git", branch: "master"
depends_on "cmake" => :build
depends_on "pkg-config" => :build
depends_on "vulkan-loader" => :build
def install
system "cmake", "-S", ".", "-B", "build", "-DCMAKE_INSTALL_SYSCONFDIR=#{etc}", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end
test do
assert_match "fastfetch", shell_output("#{bin}/fastfetch --version")
assert_match "OS", shell_output("#{bin}/fastfetch --structure OS --logo none --hide-cursor false")
end
end