This commit is contained in:
Ryan Hughes committed 2025-12-11 20:51:55 -05:00
1 parent 7e24b96d74
commit ef3458ac5d
22 files changed
+85 -92

No files matched your search

+3 -9
View File
@@ -2,7 +2,7 @@
# Maintainer: adam
pkgname='opencode'
pkgver=1.0.134
pkgver=1.0.150
_subver=
options=('!debug' '!strip')
pkgrel=1
@@ -12,23 +12,17 @@ arch=('aarch64' 'x86_64')
license=('MIT')
provides=('opencode')
conflicts=('opencode-bin')
depends=('fzf' 'ripgrep')
depends=('ripgrep')
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.134 bun run ./script/build.ts --single
OPENCODE_CHANNEL=latest OPENCODE_VERSION=1.0.150 bun run ./script/build.ts --single
}
package() {