From 1c23334c7b7e8843c51dc83ddff61b688defe6be Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 27 Oct 2025 14:11:48 -0400 Subject: [PATCH] Add applying patches to the aur packages --- bin/sync-aur | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bin/sync-aur b/bin/sync-aur index 4c03da8..5407cb8 100755 --- a/bin/sync-aur +++ b/bin/sync-aur @@ -76,6 +76,14 @@ else done < <(grep -v "^#" "$PACKAGES_FILE" | grep -v "^$") fi +# Apply patches for packages that have them +cd "$PKGBUILDS_DIR" +for dir in */; do + if [[ -d "$dir/patches" ]]; then + (cd "$dir" && git apply patches/*.patch 2>/dev/null || true) + fi +done + echo "" print_success "Sync complete!" echo " Synced: $SYNCED"