From 5bd9958618ce424b7ccdff4b309702b65be42004 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Fri, 31 Oct 2025 16:44:34 -0400 Subject: [PATCH] Add patch --- bin/sync-aur | 2 +- pkgbuilds/opencode/PKGBUILD | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/sync-aur b/bin/sync-aur index 72a4cd8..861593d 100755 --- a/bin/sync-aur +++ b/bin/sync-aur @@ -98,7 +98,7 @@ fi cd "$PKGBUILDS_DIR" for dir in */; do if [[ -d "$dir/patches" ]]; then - (cd "$dir" && git apply patches/*.patch 2>/dev/null || true) + (cd "$dir" && for patch in patches/*.patch; do patch -p1 --no-backup-if-mismatch < "$patch" 2>/dev/null || true; done) fi done diff --git a/pkgbuilds/opencode/PKGBUILD b/pkgbuilds/opencode/PKGBUILD index a14ac17..f6d66fb 100644 --- a/pkgbuilds/opencode/PKGBUILD +++ b/pkgbuilds/opencode/PKGBUILD @@ -21,6 +21,18 @@ sha256sums=('SKIP') build() { cd "opencode-${pkgver}" bun install + + # Fix for bun compile not finding platform-specific @parcel/watcher + # The compile step needs this to be explicitly installed + case "${CARCH}" in + x86_64) + bun add @parcel/watcher-linux-x64-glibc --optional + ;; + aarch64) + bun add @parcel/watcher-linux-arm64-glibc --optional + ;; + esac + cd packages/tui CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=${pkgver}" -o tui cmd/opencode/main.go cd ../opencode