Update to v1.0.81

This commit is contained in:
opencode
2025-11-20 17:16:10 +00:00
parent b17e7d6938
commit f359441c7d
2 changed files with 32 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
pkgbase = opencode pkgbase = opencode
pkgdesc = The AI coding agent built for the terminal. pkgdesc = The AI coding agent built for the terminal.
pkgver = 1.0.78 pkgver = 1.0.81
pkgrel = 1 pkgrel = 1
url = https://github.com/sst/opencode url = https://github.com/sst/opencode
arch = aarch64 arch = aarch64
@@ -15,7 +15,7 @@ pkgbase = opencode
conflicts = opencode-bin conflicts = opencode-bin
options = !debug options = !debug
options = !strip options = !strip
source = opencode-1.0.78.tar.gz::https://github.com/sst/opencode/archive/v1.0.78.tar.gz source = opencode-1.0.81.tar.gz::https://github.com/sst/opencode/archive/v1.0.81.tar.gz
sha256sums = SKIP sha256sums = SKIP
pkgname = opencode pkgname = opencode

View File

@@ -2,7 +2,7 @@
# Maintainer: adam # Maintainer: adam
pkgname='opencode' pkgname='opencode'
pkgver=1.0.78 pkgver=1.0.81
_subver= _subver=
options=('!debug' '!strip') options=('!debug' '!strip')
pkgrel=1 pkgrel=1
@@ -22,10 +22,37 @@ build() {
cd "opencode-${pkgver}" cd "opencode-${pkgver}"
bun install bun install
cd ./packages/opencode cd ./packages/opencode
OPENCODE_CHANNEL=latest OPENCODE_VERSION=1.0.78 bun run ./script/build.ts --single OPENCODE_CHANNEL=latest OPENCODE_VERSION=1.0.81 bun run ./script/build.ts --single
} }
package() { package() {
cd "opencode-${pkgver}/packages/opencode" cd "opencode-${pkgver}/packages/opencode"
install -Dm755 $(find dist/*/bin/opencode) "${pkgdir}/usr/bin/opencode" mkdir -p "${pkgdir}/usr/bin"
target_arch="x64"
case "$CARCH" in
x86_64) target_arch="x64" ;;
aarch64) target_arch="arm64" ;;
*) printf "unsupported architecture: %s\n" "$CARCH" >&2 ; return 1 ;;
esac
libc=""
if command -v ldd >/dev/null 2>&1; then
if ldd --version 2>&1 | grep -qi musl; then
libc="-musl"
fi
fi
if [ -z "$libc" ] && ls /lib/ld-musl-* >/dev/null 2>&1; then
libc="-musl"
fi
base=""
if [ "$target_arch" = "x64" ]; then
if ! grep -qi avx2 /proc/cpuinfo 2>/dev/null; then
base="-baseline"
fi
fi
bin="dist/opencode-linux-${target_arch}${base}${libc}/bin/opencode"
if [ ! -f "$bin" ]; then
printf "unable to find binary for %s%s%s\n" "$target_arch" "$base" "$libc" >&2
return 1
fi
install -Dm755 "$bin" "${pkgdir}/usr/bin/opencode"
} }