Add patch

This commit is contained in:
Ryan Hughes
2025-10-31 16:44:34 -04:00
parent 6e5b64d4d7
commit 5bd9958618
2 changed files with 13 additions and 1 deletions
+12
View File
@@ -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