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

+2 -3
View File
@@ -1,6 +1,6 @@
pkgbase = opencode
pkgdesc = The AI coding agent built for the terminal.
pkgver = 1.0.134
pkgver = 1.0.150
pkgrel = 1
url = https://github.com/sst/opencode
arch = aarch64
@@ -9,13 +9,12 @@ pkgbase = opencode
makedepends = git
makedepends = bun-bin
makedepends = go
depends = fzf
depends = ripgrep
provides = opencode
conflicts = opencode-bin
options = !debug
options = !strip
source = opencode-1.0.134.tar.gz::https://github.com/sst/opencode/archive/v1.0.134.tar.gz
source = opencode-1.0.150.tar.gz::https://github.com/sst/opencode/archive/v1.0.150.tar.gz
sha256sums = SKIP
pkgname = opencode
+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() {