Re-add fix that hasn't been implemented upstream
This commit is contained in:
1 file changed
+12
@@ -20,6 +20,18 @@ sha256sums=('SKIP')
|
|||||||
build() {
|
build() {
|
||||||
cd "opencode-${pkgver}"
|
cd "opencode-${pkgver}"
|
||||||
bun install
|
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
|
cd packages/tui
|
||||||
CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=${pkgver}" -o tui cmd/opencode/main.go
|
CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=${pkgver}" -o tui cmd/opencode/main.go
|
||||||
cd ../opencode
|
cd ../opencode
|
||||||
|
|||||||
Reference in new issue
Block a user