From 2bbbce03a99dc09df046809b01a501b2bf8e09da Mon Sep 17 00:00:00 2001 From: Luis Date: Tue, 7 Nov 2023 11:31:26 +0100 Subject: [PATCH] fastfetch: new port at 2.2.2 --- main/fastfetch/.checksums | 1 + main/fastfetch/.pkgfiles | 43 +++++++++++++++++++++++++++++++++++++++ main/fastfetch/spkgbuild | 27 ++++++++++++++++++++++++ 3 files changed, 71 insertions(+) create mode 100644 main/fastfetch/.checksums create mode 100644 main/fastfetch/.pkgfiles create mode 100644 main/fastfetch/spkgbuild diff --git a/main/fastfetch/.checksums b/main/fastfetch/.checksums new file mode 100644 index 000000000..f866c13f7 --- /dev/null +++ b/main/fastfetch/.checksums @@ -0,0 +1 @@ +f9ac7bbb57148adffbf55f714be8806e fastfetch-2.2.2.tar.gz diff --git a/main/fastfetch/.pkgfiles b/main/fastfetch/.pkgfiles new file mode 100644 index 000000000..4244265cb --- /dev/null +++ b/main/fastfetch/.pkgfiles @@ -0,0 +1,43 @@ +fastfetch-2.2.2-1 +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/fastfetch +-rwxr-xr-x root/root usr/bin/flashfetch +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/bash-completion/ +drwxr-xr-x root/root usr/share/bash-completion/completions/ +-rw-r--r-- root/root usr/share/bash-completion/completions/fastfetch +drwxr-xr-x root/root usr/share/fastfetch/ +drwxr-xr-x root/root usr/share/fastfetch/presets/ +-rw-r--r-- root/root usr/share/fastfetch/presets/all +-rw-r--r-- root/root usr/share/fastfetch/presets/all.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/btw +-rw-r--r-- root/root usr/share/fastfetch/presets/btw.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/ci +drwxr-xr-x root/root usr/share/fastfetch/presets/examples/ +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/1 +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/10.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/11.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/2 +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/2.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/3 +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/3.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/4 +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/4.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/5 +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/5.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/6.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/7.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/8.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/examples/9.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/hardware +-rw-r--r-- root/root usr/share/fastfetch/presets/hardware.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/neofetch +-rw-r--r-- root/root usr/share/fastfetch/presets/neofetch.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/paleofetch +-rw-r--r-- root/root usr/share/fastfetch/presets/paleofetch.jsonc +-rw-r--r-- root/root usr/share/fastfetch/presets/software +-rw-r--r-- root/root usr/share/fastfetch/presets/software.jsonc +drwxr-xr-x root/root usr/share/licenses/ +drwxr-xr-x root/root usr/share/licenses/fastfetch/ +-rw-r--r-- root/root usr/share/licenses/fastfetch/LICENSE diff --git a/main/fastfetch/spkgbuild b/main/fastfetch/spkgbuild new file mode 100644 index 000000000..698e0ea35 --- /dev/null +++ b/main/fastfetch/spkgbuild @@ -0,0 +1,27 @@ +# description : Like Neofetch, but much faster because written in C +# homepage : https://github.com/fastfetch-cli/fastfetch +# depends : cmake dbus dconf imagemagick libxcb libxrandr +# depends : mesa pciutils vulkan-icd-loader zlib + +name=fastfetch +version=2.2.2 +release=1 +source="${name}-${version}.tar.gz::https://github.com/fastfetch-cli/fastfetch/archive/${version}.tar.gz" + +build() { + cmake -B build -S $name-$version \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_INSTALL_LIBEXECDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_C_FLAGS_RELEASE="$CFLAGS" \ + -DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ + -DBUILD_TESTS='OFF' \ + -DENABLE_SQLITE3='OFF' \ + -DENABLE_RPM='OFF' \ + -DENABLE_IMAGEMAGICK6='OFF' \ + -Wno-dev + cmake --build build + DESTDIR=$PKG cmake --install build +} +