This commit is contained in:
Ryan Hughes committed 2025-12-12 20:06:37 -05:00
1 parent 78d09cd2a1
commit 18f13e8616
12 files changed
+39 -45

No files matched your search

+2 -2
View File
@@ -1,6 +1,6 @@
pkgbase = opencode
pkgdesc = The AI coding agent built for the terminal.
pkgver = 1.0.150
pkgver = 1.0.152
pkgrel = 1
url = https://github.com/sst/opencode
arch = aarch64
@@ -14,7 +14,7 @@ pkgbase = opencode
conflicts = opencode-bin
options = !debug
options = !strip
source = opencode-1.0.150.tar.gz::https://github.com/sst/opencode/archive/v1.0.150.tar.gz
source = opencode-1.0.152.tar.gz::https://github.com/sst/opencode/archive/v1.0.152.tar.gz
sha256sums = SKIP
pkgname = opencode
+2 -8
View File
@@ -2,7 +2,7 @@
# Maintainer: adam
pkgname='opencode'
pkgver=1.0.150
pkgver=1.0.152
_subver=
options=('!debug' '!strip')
pkgrel=1
@@ -18,17 +18,11 @@ makedepends=('git' 'bun-bin' 'go')
source=("opencode-${pkgver}.tar.gz::https://github.com/sst/opencode/archive/v${pkgver}${_subver}.tar.gz")
sha256sums=('SKIP')
prepare() {
cd "opencode-${pkgver}"
# Change strict bun version check to >= comparison
sed -i 's/process\.versions\.bun !== expectedBunVersion/process.versions.bun.localeCompare(expectedBunVersion, undefined, {numeric: true}) < 0/' packages/script/src/index.ts
}
build() {
cd "opencode-${pkgver}"
bun install
cd ./packages/opencode
OPENCODE_CHANNEL=latest OPENCODE_VERSION=1.0.150 bun run ./script/build.ts --single
OPENCODE_CHANNEL=latest OPENCODE_VERSION=1.0.152 bun run ./script/build.ts --single
}
package() {