# Template file for 'fastfetch'
pkgname=fastfetch
version=2.22.0
revision=1
build_style=cmake
configure_args="-DENABLE_SYSTEM_YYJSON=ON"
hostmakedepends="pkg-config"
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 xfconf-devel 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=ada2d56e14ce2eadaa88573dada5881684ceeaaa11df23017631b91dfa745d00

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"

post_install() {
	vlicense LICENSE
}
