Files
gentoo/dev-util/cursor-agent/cursor-agent-2026.02.27.ebuild
David Seifert 8b85734403 dev-util/cursor-agent: add 2026.02.27
Signed-off-by: David Seifert <soap@gentoo.org>
2026-03-09 09:20:49 +01:00

38 lines
933 B
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_PV="${PV}-e7d2ef6"
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}
}