From 7c57a10de3c37117a410ce8b5e52dde1842e117c Mon Sep 17 00:00:00 2001 From: opencode Date: Sun, 24 Aug 2025 23:00:39 +0000 Subject: [PATCH] Update to v0.5.24 --- .SRCINFO | 4 ++-- PKGBUILD | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 7076bbe..ab76112 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = opencode pkgdesc = The AI coding agent built for the terminal. - pkgver = 0.5.23 + pkgver = 0.5.24 pkgrel = 1 url = https://github.com/sst/opencode arch = aarch64 @@ -15,7 +15,7 @@ pkgbase = opencode conflicts = opencode-bin options = !debug options = !strip - source = opencode-0.5.23.tar.gz::https://github.com/sst/opencode/archive/v0.5.23.tar.gz + source = opencode-0.5.24.tar.gz::https://github.com/sst/opencode/archive/v0.5.24.tar.gz sha256sums = SKIP pkgname = opencode diff --git a/PKGBUILD b/PKGBUILD index dc971c2..8d1e4c2 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ # Maintainer: adam pkgname='opencode' -pkgver=0.5.23 +pkgver=0.5.24 options=('!debug' '!strip') pkgrel=1 pkgdesc='The AI coding agent built for the terminal.' @@ -14,15 +14,16 @@ conflicts=('opencode-bin') depends=('fzf' 'ripgrep') makedepends=('git' 'bun-bin' 'go') -source=("opencode-${pkgver}.tar.gz::https://github.com/sst/opencode/archive/v0.5.23.tar.gz") +source=("opencode-${pkgver}.tar.gz::https://github.com/sst/opencode/archive/v0.5.24.tar.gz") sha256sums=('SKIP') build() { cd "opencode-${pkgver}" + bun install cd packages/tui CGO_ENABLED=0 go build -ldflags="-s -w -X main.Version=${pkgver}" -o tui cmd/opencode/main.go cd ../opencode - bun build --define OPENCODE_TUI_PATH="'../tui/tui'" --define OPENCODE_VERSION="'${pkgver}'" --compile --target=bun-linux-x64 --outfile=opencode ./src/index.ts + bun build --define OPENCODE_TUI_PATH="'$(realpath ../tui/tui)'" --define OPENCODE_VERSION="'${pkgver}'" --compile --target=bun-linux-x64 --outfile=opencode ./src/index.ts } package() {