From ac54f6f84dc15182c45f386d8bb333f2c09aa141 Mon Sep 17 00:00:00 2001
From: Carter Li <zhangsongcui@live.cn>
Date: Thu, 5 Dec 2024 17:43:34 +0800
Subject: [PATCH] Add sysutils/fastfetch, a system information tool written in
 c

Discussed in reddit `r/openbsd`.
---
 sysutils/fastfetch/Makefile  | 40 ++++++++++++++++++++++++++++++
 sysutils/fastfetch/distinfo  |  2 ++
 sysutils/fastfetch/pkg/DESCR |  2 ++
 sysutils/fastfetch/pkg/PLIST | 47 ++++++++++++++++++++++++++++++++++++
 4 files changed, 91 insertions(+)
 create mode 100644 sysutils/fastfetch/Makefile
 create mode 100644 sysutils/fastfetch/distinfo
 create mode 100644 sysutils/fastfetch/pkg/DESCR
 create mode 100644 sysutils/fastfetch/pkg/PLIST

diff --git a/sysutils/fastfetch/Makefile b/sysutils/fastfetch/Makefile
new file mode 100644
index 000000000..4ea6ae3ab
--- /dev/null
+++ b/sysutils/fastfetch/Makefile
@@ -0,0 +1,40 @@
+COMMENT =	system information tool written in c
+CATEGORIES =	sysutils misc
+
+GH_ACCOUNT =	fastfetch-cli
+GH_PROJECT =	fastfetch
+GH_TAGNAME =	2.31.0
+REVISION = 	0
+
+# MIT
+PERMIT_PACKAGE =	Yes
+
+WANTLIB += c kvm m pthread
+
+MODULES =		devel/cmake \
+			lang/python
+
+BUILD_DEPENDS =		audio/pulseaudio \
+			databases/sqlite3 \
+			devel/glib2 \
+			devel/dconf \
+			devel/pkgconf \
+			graphics/vulkan-loader \
+			graphics/vulkan-headers \
+			graphics/chafa \
+			graphics/ImageMagick \
+			wayland/wayland \
+			x11/dbus \
+			x11/xfce4/xfconf
+			
+RUN_DEPENDS =		misc/hwdata
+
+COMPILER =		base-clang
+
+CONFIGURE_ARGS =	-DCMAKE_INSTALL_PREFIX=${LOCALBASE} \
+			-DSET_TWEAK=OFF \
+			-DBUILD_TESTS=ON
+
+DEBUG_PACKAGES = ${BUILD_PACKAGES}
+
+.include <bsd.port.mk>
diff --git a/sysutils/fastfetch/distinfo b/sysutils/fastfetch/distinfo
new file mode 100644
index 000000000..e8dfda5e8
--- /dev/null
+++ b/sysutils/fastfetch/distinfo
@@ -0,0 +1,2 @@
+SHA256 (fastfetch-2.31.0.tar.gz) = MDbjSswTVb85YZ3xokAPX4MW0YgIjwfZo2alIbswrWE=
+SIZE (fastfetch-2.31.0.tar.gz) = 1149745
diff --git a/sysutils/fastfetch/pkg/DESCR b/sysutils/fastfetch/pkg/DESCR
new file mode 100644
index 000000000..46ada2697
--- /dev/null
+++ b/sysutils/fastfetch/pkg/DESCR
@@ -0,0 +1,2 @@
+A maintained, feature-rich and performance oriented, neofetch like system
+information tool written in C.
diff --git a/sysutils/fastfetch/pkg/PLIST b/sysutils/fastfetch/pkg/PLIST
new file mode 100644
index 000000000..2c9ab2069
--- /dev/null
+++ b/sysutils/fastfetch/pkg/PLIST
@@ -0,0 +1,47 @@
+@bin bin/fastfetch
+@bin bin/flashfetch
+@man man/man1/fastfetch.1
+share/bash-completion/
+share/bash-completion/completions/
+share/bash-completion/completions/fastfetch
+share/fastfetch/
+share/fastfetch/presets/
+share/fastfetch/presets/all.jsonc
+share/fastfetch/presets/archey.jsonc
+share/fastfetch/presets/ci.jsonc
+share/fastfetch/presets/examples/
+share/fastfetch/presets/examples/10.jsonc
+share/fastfetch/presets/examples/11.jsonc
+share/fastfetch/presets/examples/12.jsonc
+share/fastfetch/presets/examples/13.jsonc
+share/fastfetch/presets/examples/14.jsonc
+share/fastfetch/presets/examples/15.jsonc
+share/fastfetch/presets/examples/16.jsonc
+share/fastfetch/presets/examples/17.jsonc
+share/fastfetch/presets/examples/18.jsonc
+share/fastfetch/presets/examples/19.jsonc
+share/fastfetch/presets/examples/2.jsonc
+share/fastfetch/presets/examples/20.jsonc
+share/fastfetch/presets/examples/21.jsonc
+share/fastfetch/presets/examples/22.jsonc
+share/fastfetch/presets/examples/23.jsonc
+share/fastfetch/presets/examples/24.jsonc
+share/fastfetch/presets/examples/3.jsonc
+share/fastfetch/presets/examples/4.jsonc
+share/fastfetch/presets/examples/5.jsonc
+share/fastfetch/presets/examples/6.jsonc
+share/fastfetch/presets/examples/7.jsonc
+share/fastfetch/presets/examples/8.jsonc
+share/fastfetch/presets/examples/9.jsonc
+share/fastfetch/presets/neofetch.jsonc
+share/fastfetch/presets/paleofetch.jsonc
+share/fastfetch/presets/screenfetch.jsonc
+share/fish/
+share/fish/vendor_completions.d/
+share/fish/vendor_completions.d/fastfetch.fish
+share/licenses/
+share/licenses/fastfetch/
+share/licenses/fastfetch/LICENSE
+share/zsh/
+share/zsh/site-functions/
+share/zsh/site-functions/_fastfetch
-- 
2.46.1

