aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-03-31 14:36:09 +0200
committerDanilo M. <danix@danix.xyz>2026-03-31 14:36:09 +0200
commit4723f607b74d09518ac582b635cdae1951697dd7 (patch)
treef11f63a9a47f6cd7925e4a89c44c1ed4fd3ecdf2
parent13bbd5009a7de18dfcad888bbcb45e38b166d2fb (diff)
downloadmy-slackbuilds-4723f607b74d09518ac582b635cdae1951697dd7.tar.gz
my-slackbuilds-4723f607b74d09518ac582b635cdae1951697dd7.zip
fixed opencode slackbuild and related entries in all files.
-rw-r--r--README.md2
-rw-r--r--nvchecker.toml3
-rw-r--r--opencode-bin/README36
-rw-r--r--opencode-bin/opencode-bin.SlackBuild47
-rw-r--r--opencode-bin/opencode-bin.info8
-rw-r--r--opencode-bin/opencode.167
-rw-r--r--opencode-bin/slack-desc18
7 files changed, 118 insertions, 63 deletions
diff --git a/README.md b/README.md
index ac458a1..63b6612 100644
--- a/README.md
+++ b/README.md
@@ -38,7 +38,7 @@ Each package lives in its own top-level directory:
| llama.cpp-vulkan | ✅ | not tested | ❌ | b8589 | b8590 |
| obsidian | ✅ | not tested | [obsidian](https://slackbuilds.org/repository/15.0/development/obsidian/) | 1.12.7 | 1.12.7 |
| qarma | ✅ | not tested | ❌ | 1.0.0 | 1.1.0 |
-| opencode-bin| ✅ | not tested | ❌ | 0.0.55 | 0.0.55 |
+| opencode-bin| ✅ | not tested | ❌ | 1.3.9 | 1.3.9 |
| syncthing | ✅ | not tested | [syncthing](https://slackbuilds.org/repository/15.0/network/syncthing/) | 2.0.15 | 2.0.15 |
---
diff --git a/nvchecker.toml b/nvchecker.toml
index fae24d6..0c70e86 100644
--- a/nvchecker.toml
+++ b/nvchecker.toml
@@ -45,6 +45,7 @@ prefix = "v"
[opencode-bin]
source = "github"
-github = "opencode-ai/opencode"
+github = "anomalyco/opencode"
use_latest_release = true
+prefix = "v"
diff --git a/opencode-bin/README b/opencode-bin/README
index 3df10f1..1b8e8d0 100644
--- a/opencode-bin/README
+++ b/opencode-bin/README
@@ -1,21 +1,15 @@
-opencode-bin is a pre-built binary repackage of opencode, a
-powerful AI coding agent built for the terminal. It supports
-multiple LLM providers including OpenAI, Anthropic, Google Gemini,
-and others.
-
-No compilation is required; the official upstream binary is
-statically linked and has no runtime library dependencies.
-
-To use opencode, you need an API key for at least one supported
-LLM provider. Set the appropriate environment variable (e.g.
-OPENAI_API_KEY, ANTHROPIC_API_KEY) or configure it via opencode's
-interactive setup.
-
-Homepage: https://github.com/opencode-ai/opencode
-
-NOTE FOR aarch64 USERS: The aarch64 tarball is not listed in the
-.info file (not a standard SBo field). Download it manually before
-building:
-
-wget https://github.com/opencode-ai/opencode/ \
- releases/download/v0.0.55/opencode-linux-arm64.tar.gz
+OpenCode is an open source agent that helps you write code in your
+terminal, IDE, or desktop.
+
+ - LSP enabled Automatically loads the right LSPs for the LLM
+ - Multi-session Start multiple agents in parallel on the same project
+ - Share links Share a link to any session for reference or to debug
+ - GitHub Copilot Log in with GitHub to use your Copilot account
+ - ChatGPT Plus/Pro Log in with OpenAI to use your ChatGPT Plus or Pro
+ account
+ - Any model 75+ LLM providers through Models.dev, including local
+ models
+ - Any editor Available as a terminal interface, desktop app, and
+ IDE extension
+
+This Package delivers the binary released from mainstream
diff --git a/opencode-bin/opencode-bin.SlackBuild b/opencode-bin/opencode-bin.SlackBuild
index df243cb..9be27a2 100644
--- a/opencode-bin/opencode-bin.SlackBuild
+++ b/opencode-bin/opencode-bin.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/bash
-# Slackware build script for opencode-bin
+# Slackware build script for opencode
# Copyright 2026 danix <danix@danix.xyz>
# All rights reserved.
@@ -25,45 +25,37 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=opencode-bin
-VERSION=${VERSION:-0.0.55}
+SRCNAM=opencode
+VERSION=${VERSION:-1.3.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
-if [ -z "$ARCH" ]; then
- case "$( uname -m )" in
- arm*) ARCH=arm ;;
- *) ARCH=$( uname -m ) ;;
- esac
+ARCH=${ARCH:-x86_64}
+
+# Only x86_64 is supported (pre-built binary)
+if [ "$ARCH" != "x86_64" ]; then
+ echo "ERROR: $PRGNAM is only available for x86_64."
+ exit 1
fi
-if [ -n "${PRINT_PACKAGE_NAME}" ]; then
+if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
fi
-set -e
-
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-if [ "$ARCH" = "x86_64" ]; then
- SRCARCH="x86_64"
-elif [ "$ARCH" = "aarch64" ]; then
- SRCARCH="arm64"
-else
- echo "$ARCH is not supported."
- exit 1
-fi
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-mkdir -p $PRGNAM-$VERSION
-tar xvf $CWD/opencode-linux-$SRCARCH.tar.gz -C $PRGNAM-$VERSION
-cd $PRGNAM-$VERSION
+
+tar xvf $CWD/$SRCNAM-linux-x64.tar.gz
+
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -72,15 +64,16 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
mkdir -p $PKG/usr/bin
-install -m 0755 opencode $PKG/usr/bin/opencode
+install -D -m 0755 opencode $PKG/usr/bin/opencode
+# Install man page
+install -D -m 0644 $CWD/opencode.1 $PKG/usr/man/man1/opencode.1
+gzip -9 $PKG/usr/man/man1/opencode.1
+
+# Install docs
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
-find $PKG -print0 | xargs -0 file | grep -a " ELF " | grep -v '\.o:' | \
- cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
diff --git a/opencode-bin/opencode-bin.info b/opencode-bin/opencode-bin.info
index 527ca92..e4ae58f 100644
--- a/opencode-bin/opencode-bin.info
+++ b/opencode-bin/opencode-bin.info
@@ -1,10 +1,10 @@
PRGNAM="opencode-bin"
-VERSION="0.0.55"
-HOMEPAGE="https://github.com/opencode-ai/opencode"
+VERSION="1.3.9"
+HOMEPAGE="https://opencode.ai"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/opencode-ai/opencode/releases/download/v0.0.55/opencode-linux-x86_64.tar.gz"
-MD5SUM_x86_64="b68da70c6ee4261a87ee9fb0230779fb"
+DOWNLOAD_x86_64="https://github.com/anomalyco/opencode/releases/download/v1.3.9/opencode-linux-x64.tar.gz"
+MD5SUM_x86_64="8dd2dab3b9ffaeb956fa95ed80b6b15b"
REQUIRES=""
MAINTAINER="danix"
EMAIL="danix@danix.xyz"
diff --git a/opencode-bin/opencode.1 b/opencode-bin/opencode.1
new file mode 100644
index 0000000..ba2b76b
--- /dev/null
+++ b/opencode-bin/opencode.1
@@ -0,0 +1,67 @@
+.TH OPENCODE 1 "2025" "opencode" "User Commands"
+.SH NAME
+opencode \- open source AI coding agent for the terminal
+.SH SYNOPSIS
+.B opencode
+[\fIOPTIONS\fR]
+.SH DESCRIPTION
+.B opencode
+is an AI coding agent designed for the terminal. It provides a TUI
+(Terminal User Interface) for interacting with 75+ LLM providers
+including Anthropic Claude, OpenAI, Google Gemini, GitHub Copilot,
+and local models via Ollama.
+.PP
+It uses a client/server architecture allowing the server to run on
+one machine while being driven remotely from another client.
+.SH OPTIONS
+.TP
+.BR \-h ", " \-\-help
+Display help information and exit.
+.TP
+.BR \-v ", " \-\-version
+Print version number and exit.
+.TP
+.BR \-d ", " \-\-debug
+Enable debug logging.
+.TP
+.BR \-c " " \fIDIR\fR ", " \-\-cwd " " \fIDIR\fR
+Set the working directory for the session.
+.TP
+.BR \-p " " \fIPROMPT\fR ", " \-\-print " " \fIPROMPT\fR
+Run non-interactively with the given prompt and print the response,
+then exit. Useful for scripting and automation.
+.TP
+.BR \-f " " \fIFORMAT\fR ", " \-\-format " " \fIFORMAT\fR
+Output format when using \fB\-p\fR. Options: \fBtext\fR (default), \fBjson\fR.
+.TP
+.BR \-q ", " \-\-quiet
+Suppress the spinner animation. Useful when running from scripts.
+.SH ENVIRONMENT
+.TP
+.B OPENCODE_INSTALL_DIR
+Override the binary installation directory used by the install script.
+.TP
+.B XDG_BIN_DIR
+XDG Base Directory Specification compliant binary path.
+.SH FILES
+.TP
+.I ~/.config/opencode/
+User configuration directory.
+.TP
+.I ~/.local/share/opencode/auth.json
+Stored authentication credentials.
+.SH TUI COMMANDS
+Inside the TUI, the following slash commands are available:
+.TP
+.B /connect
+Configure and authenticate an LLM provider.
+.TP
+.B /models
+Switch between available models.
+.SH SEE ALSO
+Full documentation at \fIhttps://opencode.ai/docs\fR
+.SH AUTHORS
+Developed by the Anomaly team. See \fIhttps://github.com/anomalyco/opencode\fR
+for contributors.
+.SH LICENSE
+MIT License.
diff --git a/opencode-bin/slack-desc b/opencode-bin/slack-desc
index 125ad40..9469921 100644
--- a/opencode-bin/slack-desc
+++ b/opencode-bin/slack-desc
@@ -3,17 +3,17 @@
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
-# customary to leave one blank line after the name.
+# customary to leave one blank line after the base package name's header.
|-----handy-ruler------------------------------------------------------|
-opencode-bin: opencode-bin (AI coding agent for the terminal)
+opencode-bin: opencode-bin (open source AI coding agent for the terminal)
opencode-bin:
-opencode-bin: opencode is a powerful AI coding agent built for the terminal.
-opencode-bin: It supports multiple LLM providers including OpenAI, Anthropic,
-opencode-bin: Google Gemini, and others via simple configuration.
+opencode-bin: OpenCode is a TUI/CLI AI coding agent supporting 75+ LLM providers
+opencode-bin: including Claude, OpenAI, Gemini, GitHub Copilot, and local models
+opencode-bin: via Ollama. It features a client/server architecture, session
+opencode-bin: management, LSP integration, MCP support, and plugin system.
+opencode-bin: Binaries are compiled with Bun and are self-contained.
opencode-bin:
-opencode-bin: This package ships the official pre-built binary. No compilation
-opencode-bin: is required. API keys for a supported LLM provider are needed
-opencode-bin: at runtime.
+opencode-bin: Homepage: https://opencode.ai
+opencode-bin: License: MIT
opencode-bin:
-opencode-bin: Homepage: https://github.com/opencode-ai/opencode