From 5eb44ca25cb507d6ad0fdbaa1fe02c235035d2a8 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 27 Oct 2025 14:01:14 -0400 Subject: [PATCH] Re-add fix that hasn't been implemented upstream --- pkgbuilds/opencode/PKGBUILD | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pkgbuilds/opencode/PKGBUILD b/pkgbuilds/opencode/PKGBUILD index a27b9e7..9e092f3 100644 --- a/pkgbuilds/opencode/PKGBUILD +++ b/pkgbuilds/opencode/PKGBUILD @@ -20,6 +20,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