2024-05-27 06:37:50 +02:00
|
|
|
# Template file for 'fastfetch'
|
|
|
|
pkgname=fastfetch
|
2024-12-07 08:57:50 +01:00
|
|
|
version=2.31.0
|
2024-05-27 06:37:50 +02:00
|
|
|
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
|
2024-08-09 09:08:17 +02:00
|
|
|
OpenCL-Headers xfconf-devel dbus-devel pulseaudio-devel ddcutil-devel elfutils-devel"
|
2024-05-27 06:37:50 +02:00
|
|
|
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"
|
2024-12-07 08:57:50 +01:00
|
|
|
checksum=3036e34acc1355bf39619df1a2400f5f8316d188088f07d9a366a521bb30ad61
|
2024-05-27 06:37:50 +02:00
|
|
|
|
|
|
|
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"
|
|
|
|
|
2024-09-19 20:11:11 +02:00
|
|
|
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')"
|
|
|
|
}
|
|
|
|
|
2024-05-27 06:37:50 +02:00
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE
|
|
|
|
}
|