Fix opencode
This commit is contained in:
1 parent
ed25b693a1
commit
18227b6a81
2 files changed
+15
-9
No files matched your search
@@ -1,6 +1,6 @@
|
||||
pkgbase = opencode
|
||||
pkgdesc = The AI coding agent built for the terminal.
|
||||
pkgver = 1.0.15
|
||||
pkgver = 1.0.55
|
||||
pkgrel = 1
|
||||
url = https://github.com/sst/opencode
|
||||
arch = aarch64
|
||||
@@ -16,7 +16,7 @@ pkgbase = opencode
|
||||
conflicts = opencode-bin
|
||||
options = !debug
|
||||
options = !strip
|
||||
source = opencode-1.0.15.tar.gz::https://github.com/sst/opencode/archive/v1.0.15.tar.gz
|
||||
sha256sums = SKIP
|
||||
source = opencode-1.0.55.tar.gz::https://github.com/sst/opencode/archive/v1.0.55.tar.gz
|
||||
sha256sums = 3db64a1cd6f0b1163e50092aeac73ba21144d8bacbe52c70b1493ba2e52dd05b
|
||||
|
||||
pkgname = opencode
|
||||
@@ -20,18 +20,24 @@ sha256sums=('3db64a1cd6f0b1163e50092aeac73ba21144d8bacbe52c70b1493ba2e52dd05b')
|
||||
|
||||
build() {
|
||||
cd "opencode-${pkgver}"
|
||||
|
||||
|
||||
# Ensure npm is in PATH for bun's shell
|
||||
export PATH="/usr/bin:$PATH"
|
||||
|
||||
|
||||
# Install workspace dependencies from root
|
||||
bun install
|
||||
cd ./packages/opencode
|
||||
OPENCODE_CHANNEL=latest OPENCODE_VERSION=1.0.55 bun run ./script/build.ts --single
|
||||
|
||||
# Install from package directory to create local node_modules with workspace symlinks
|
||||
cd packages/opencode
|
||||
bun install
|
||||
|
||||
# Build the binary
|
||||
OPENCODE_CHANNEL=latest OPENCODE_VERSION=${pkgver} bun run build --single
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "opencode-${pkgver}/packages/opencode"
|
||||
|
||||
|
||||
# Determine architecture for the binary path
|
||||
case "${CARCH}" in
|
||||
x86_64)
|
||||
@@ -41,6 +47,6 @@ package() {
|
||||
_arch="arm64"
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
install -Dm755 "./dist/opencode-linux-${_arch}/bin/opencode" "${pkgdir}/usr/bin/opencode"
|
||||
}
|
||||
Reference in new issue
Block a user