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 -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() {