mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2026-05-06 07:27:03 -04:00
8b85734403
Signed-off-by: David Seifert <soap@gentoo.org>
38 lines
933 B
Bash
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}
|
|
}
|