dev-util/opencode-bin - 2.0.20 (guru)

Search

Install

Install this version:

emerge -a =dev-util/opencode-bin-2.0.20

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/opencode-bin-2.0.20

Or alternatively:

emerge --autounmask-write -a =dev-util/opencode-bin-2.0.20

Package Information

Description:
The open source coding agent
Homepage:
https://opencode.ai
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
2.0.20 8 ~amd64 ~arm64 0
View Raw Ebuild
# Copyright 2021-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MY_PN=${PN%%-bin}

DESCRIPTION="The open source coding agent"
HOMEPAGE="https://opencode.ai"

SRC_URI="
	amd64? (
		https://registry.npmjs.org/@opencode/cli-linux-x64-baseline/-/cli-linux-x64-baseline-${PV}.tgz -> ${P}-amd64.tar.gz
	)
	arm64? (
		https://registry.npmjs.org/@opencode/cli-linux-arm64/-/cli-linux-arm64-${PV}.tgz -> ${P}-arm64.tar.gz
	)
"

S="${WORKDIR}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RESTRICT="mirror strip"

QA_PREBUILT="usr/bin/opencode"

src_install() {
	dobin package/bin/${MY_PN}
	dosym ${MY_PN} /usr/bin/${MY_PN}2
}

Manifest for 2.0.20

Type File Size Source URLs
DIST opencode-bin-2.0.20-amd64.tar.gz 90417298 bytes https://registry.npmjs.org/@opencode/cli-linux-x64-baseline/-/cli-linux-x64-baseline-2.0.20.tgz
DIST opencode-bin-2.0.20-arm64.tar.gz 89214613 bytes https://registry.npmjs.org/@opencode/cli-linux-arm64/-/cli-linux-arm64-2.0.20.tgz