From dd97b072b3c3648aabf740b35446e69ad4ae5c31 Mon Sep 17 00:00:00 2001 From: superrob1500 Date: Sun, 12 Oct 2025 21:55:53 +0200 Subject: [PATCH] hammering away --- ghostty-build-update.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/ghostty-build-update.sh b/ghostty-build-update.sh index fb8fb50..27a18ea 100644 --- a/ghostty-build-update.sh +++ b/ghostty-build-update.sh @@ -179,12 +179,11 @@ install_deps_linux() { ;; esac - # Verify critical pkg-config dependencies - for pkg in gtk4 libadwaita-1 gtk-layer-shell-1.0; do - if ! pkg-config --exists "$pkg"; then - error "Missing required development package: $pkg. Did apt-get install succeed?" - fi - done + # Verify critical header files instead of pkg-config + [[ -f /usr/include/gtk-4.0/gtk/gtk.h ]] || error "GTK4 headers not found. Install libgtk-4-dev." + [[ -f /usr/include/adwaita-1.0/adwaita.h ]] || error "libadwaita headers not found. Install libadwaita-1-dev." + [[ -f /usr/include/gtk-layer-shell-1.0/gtk-layer-shell.h ]] || error "GTK Layer Shell headers not found. Install libgtk4-layer-shell-dev." + [[ -f /usr/include/harfbuzz/harfbuzz.h ]] || error "Harfbuzz headers not found. Install libharfbuzz-dev." elif command_exists pacman; then sudo pacman -Sy --noconfirm \