Add applying patches to the aur packages
This commit is contained in:
1 file changed
+8
@@ -76,6 +76,14 @@ else
|
|||||||
done < <(grep -v "^#" "$PACKAGES_FILE" | grep -v "^$")
|
done < <(grep -v "^#" "$PACKAGES_FILE" | grep -v "^$")
|
||||||
fi
|
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 ""
|
echo ""
|
||||||
print_success "Sync complete!"
|
print_success "Sync complete!"
|
||||||
echo " Synced: $SYNCED"
|
echo " Synced: $SYNCED"
|
||||||
|
|||||||
Reference in new issue
Block a user