From 3f1af66fd9c80e598a5f9bd472f1b20299e2875e Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Thu, 19 Sep 2024 14:11:11 -0400 Subject: [PATCH] fastfetch: update to 2.25.0. --- srcpkgs/fastfetch/template | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/srcpkgs/fastfetch/template b/srcpkgs/fastfetch/template index 693089d2473..57496da5e85 100644 --- a/srcpkgs/fastfetch/template +++ b/srcpkgs/fastfetch/template @@ -1,6 +1,6 @@ # Template file for 'fastfetch' pkgname=fastfetch -version=2.23.0 +version=2.25.0 revision=1 build_style=cmake configure_args="-DENABLE_SYSTEM_YYJSON=ON" @@ -14,7 +14,7 @@ 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=3c92dd2cb15faf55d87846eda8d14456af2d0e0938998434144074c695c57529 +checksum=17ea39fd062d5bccc9c608e868f593a665d569646bc9b447111b3a608b648783 if [ -n "$XBPS_CHECK_PKGS" ]; then configure_args+=" -DBUILD_TESTS=ON" @@ -23,6 +23,14 @@ fi # missing for finding Vulkan-Headers as #include 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 }