LINUXNAUTA

    fastfetch - Voidlinux template

    GitHub release (with filter)

    Template for VoidLinux

    A maintained, feature-rich and performance oriented, neofetch like system information tool.

    version 2.53.0

    fastfecth

    September 2025


    Binaries https://voidrepo.linuxnauta.com/

    Developer https://github.com/fastfetch-cli/fastfetch


    template download


    
      
        
    # Template file for 'fastfetch'
    pkgname=fastfetch
    version=2.53.0
    revision=1
    build_style=cmake
    configure_args="-DENABLE_SYSTEM_YYJSON=ON -DBUILD_FLASHFETCH=OFF"
    hostmakedepends="pkg-config python3"
    makedepends="yyjson-devel vulkan-loader-devel libXrandr-devel wayland-devel libdrm-devel
     glib-devel dconf-devel libmagick-devel chafa-devel zlib-devel dbus-devel MesaLib-devel
     OpenCL-Headers dbus-devel pulseaudio-devel ddcutil-devel elfutils-devel"
    short_desc="System information fetching tool"
    maintainer="classabbyamp <void@placeviolette.net>"
    license="MIT"
    homepage="https://github.com/fastfetch-cli/fastfetch"
    changelog="https://github.com/fastfetch-cli/fastfetch/raw/dev/CHANGELOG.md"
    distfiles="https://github.com/fastfetch-cli/fastfetch/archive/refs/tags/${version}.tar.gz"
    checksum=1488d9b738474e8ef8e8d78e2463722bf706e435857c849b3f480354ad62366e
    
    case "$XBPS_TARGET_MACHINE" in
    	x86_64|aarch64) makedepends+=" DirectX-Headers" ;;
    esac
    
    if [ -n "$XBPS_CHECK_PKGS" ]; then
    	configure_args+=" -DBUILD_TESTS=ON"
    fi
    
    # missing for finding Vulkan-Headers as #include <vulkan/vulkan.h>
    CFLAGS="-I/usr/include"
    
    pre_configure() {
    	# disable most package managers by default using horrible hacks, because upstream did it weird
    	mkdir -p build && cd build
    	configure_args+="$(CMAKE_GENERATOR="Ninja" cmake -L ${wrksrc}/${build_wrksrc} | \
    		grep -oE 'PACKAGES_DISABLE_[a-zA-Z0-9]+' | \
    		grep -viE 'xbps|flatpak|nix|guix' | xargs printf ' -D%s=ON')"
    }
    
    post_install() {
    	vlicense LICENSE
    }