Files
gentoo-zh/dev-util/jcode-bin/jcode-bin-1.0.3.ebuild
T
Zakk d59cde9f67 dev-util/jcode-bin: add 1.0.3, drop 1.0.1
The 1.0.3 aarch64 binary no longer links libssl or libcrypto, so drop
dev-libs/openssl. Both glibc floors are below 2.41-r10, the oldest glibc
::gentoo leaves unmasked, so depend on sys-libs/glibc without a version;
the dependency still keeps the glibc binaries off musl systems.

Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Zakk <zakk@gentoozh.org>
2026-11-22 19:07:24 +11:00

43 lines
1.1 KiB
Bash

# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PN="${PN%-bin}"
URI_PREFIX="https://github.com/1jehuang/${MY_PN}/releases/download/v${PV}"
DESCRIPTION="Coding agent CLI for Claude, ChatGPT and other model providers (prebuilt binary)"
HOMEPAGE="https://github.com/1jehuang/jcode"
SRC_URI="
amd64? ( ${URI_PREFIX}/${MY_PN}-linux-x86_64.tar.gz -> ${P}-amd64.tar.gz )
arm64? ( ${URI_PREFIX}/${MY_PN}-linux-aarch64.tar.gz -> ${P}-arm64.tar.gz )
"
S="${WORKDIR}"
LICENSE="MIT"
# Dependent crate licenses
LICENSE+="
0BSD Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD BSD-2 BlueOak-1.0.0
Boost-1.0 CC0-1.0 CDLA-Permissive-2.0 ISC MIT-0 MPL-2.0 Unicode-3.0
Unicode-DFS-2016 Unlicense WTFPL-2 ZLIB
"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RDEPEND="sys-libs/glibc"
QA_PREBUILT="usr/bin/${MY_PN}"
src_install() {
if use amd64; then
newbin ${MY_PN}-linux-x86_64.bin ${MY_PN}
else
newbin ${MY_PN}-linux-aarch64 ${MY_PN}
fi
}
pkg_postinst() {
elog "jcode sends anonymous usage telemetry by default."
elog "Run 'jcode telemetry disable' or set JCODE_NO_TELEMETRY=1 to turn it off."
}