Files
gentoo-zh/app-misc/opencode-bin/opencode-bin-0.1.126.ebuild
T
Leo DouglasandGitHub Copilot a8610bbe7f app-misc/opencode-bin: add 0.1.126
🤖 Generated with GitHub Copilot

Signed-off-by: Leo Douglas <douglarek@gmail.com>
Co-authored-by: GitHub Copilot <copilot@github.com>
2025-06-24 09:39:59 +08:00

25 lines
585 B
Bash

# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="AI coding agent, built for the terminal"
HOMEPAGE="https://github.com/sst/opencode"
SRC_URI="
amd64? ( https://github.com/sst/opencode/releases/download/v${PV}/opencode-linux-x64.zip -> ${P}-amd64.zip )
arm64? ( https://github.com/sst/opencode/releases/download/v${PV}/opencode-linux-arm64.zip -> ${P}-arm64.zip )
"
S="${WORKDIR}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
BDEPEND="app-arch/unzip"
RESTRICT="strip"
src_install() {
dobin opencode
}