Add opencode package (#13964)

This commit is contained in:
Ed Reel
2025-12-24 09:54:34 -06:00
committed by GitHub
parent 3acdbed2d9
commit d7316e939c
5 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
# Total size: 142858528
/usr/local/bin/opencode

21
packages/opencode.rb Normal file
View File

@@ -0,0 +1,21 @@
require 'package'
class Opencode < Package
description 'The open source coding agent.'
homepage 'https://opencode.ai/'
version '1.0.193'
license 'MIT'
compatibility 'x86_64'
source_url "https://github.com/sst/opencode/releases/download/v#{version}/opencode-linux-x64.tar.gz"
source_sha256 'aa2dc94fbecdabbe20846a6d2fe8348d7a3f0c134508ff8a6aaed0be0615233c'
no_compile_needed
def self.install
FileUtils.install 'opencode', "#{CREW_DEST_PREFIX}/bin/opencode", mode: 0o755
end
def self.postinstall
ExitMessage.add "\nType 'opencode' to get started.\n"
end
end

3
tests/package/o/opencode Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
opencode -h | head
opencode -v

View File

@@ -67,3 +67,4 @@ libvisio
libxfce4ui
nano
ocaml
opencode

View File

@@ -6790,6 +6790,11 @@ url: https://github.com/KhronosGroup/OpenCL-ICD-Loader/releases
activity: medium
---
kind: url
name: opencode
url: https://github.com/sst/opencode/releases
activity: high
---
kind: url
name: openconnect
url: ftp://ftp.infradead.org/pub/openconnect/
activity: none