cursor-agent-2026.01.23.ebuild
Download (933 Bytes)
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PV="${PV}-916f423"
DESCRIPTION="Cursor CLI - interact with AI agents directly from your terminal"
HOMEPAGE="https://docs.cursor.com/en/cli"
SRC_URI="
amd64? ( https://downloads.cursor.com/lab/${MY_PV}/linux/x64/agent-cli-package.tar.gz -> ${P}-x64.tar.gz )
arm64? ( https://downloads.cursor.com/lab/${MY_PV}/linux/arm64/agent-cli-package.tar.gz -> ${P}-arm64.tar.gz )
"
S="${WORKDIR}"/dist-package
LICENSE="all-rights-reserved"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm64"
RESTRICT="bindist mirror strip"
RDEPEND="
net-libs/nodejs
sys-apps/ripgrep
"
QA_PREBUILT="opt/cursor-agent/*"
src_install() {
rm -rf rg node || die
sed -i 's|NODE_BIN="$SCRIPT_DIR/node"|NODE_BIN="node"|' cursor-agent || die
insinto /opt/${PN}
doins -r .
fperms +x /opt/${PN}/{${PN},cursorsandbox}
dosym ../${PN}/${PN} /opt/bin/${PN}
}
| ||