dev-util/grok-build-bin - 0.2.118 (gentoo-zh)

Search

Install

Install this version:

emerge -a =dev-util/grok-build-bin-0.2.118

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/grok-build-bin-0.2.118

Or alternatively:

emerge --autounmask-write -a =dev-util/grok-build-bin-0.2.118

Package Information

Description:
Terminal-based AI coding agent by SpaceXAI
Homepage:
https://x.ai/cli https://github.com/xai-org/grok-build
License:
Apache-2.0 BSD BSD-2 Boost-1.0 CC0-1.0 CDLA-Permissive-2.0 ISC MIT MIT-0 MPL-2.0 Unicode-3.0 Unicode-DFS-2016 ZLIB

Ebuild Details

Version EAPI Keywords Slot
0.2.118 8 -* ~amd64 0
View Raw Ebuild
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit shell-completion

DESCRIPTION="Terminal-based AI coding agent by SpaceXAI"
HOMEPAGE="https://x.ai/cli https://github.com/xai-org/grok-build"
MY_COMMIT="6e386420825bd44ae648c63e7c8cba12fcec9401"
SRC_URI="
	amd64? ( https://x.ai/cli/grok-${PV}-linux-x86_64 -> ${P}-amd64 )
	https://raw.githubusercontent.com/xai-org/grok-build/${MY_COMMIT}/LICENSE
		-> ${P}-LICENSE
	https://raw.githubusercontent.com/xai-org/grok-build/${MY_COMMIT}/THIRD-PARTY-NOTICES
		-> ${P}-THIRD-PARTY-NOTICES
"

S="${WORKDIR}"

LICENSE="
	Apache-2.0 BSD BSD-2 Boost-1.0 CC0-1.0 CDLA-Permissive-2.0 ISC MIT MIT-0
	MPL-2.0 Unicode-3.0 Unicode-DFS-2016 ZLIB
"
SLOT="0"
KEYWORDS="-* ~amd64"
RESTRICT="strip"

QA_PREBUILT="usr/bin/grok"

src_unpack() {
	cp "${DISTDIR}/${P}-amd64" grok || die
	chmod +x grok || die
}

src_compile() {
	export GROK_DISABLE_AUTOUPDATER=1

	./grok completions bash > grok.bash || die
	./grok completions fish > grok.fish || die
	./grok completions zsh > _grok || die
}

src_install() {
	dobin grok

	newbashcomp grok.bash grok
	dofishcomp grok.fish
	dozshcomp _grok

	newdoc "${DISTDIR}/${P}-LICENSE" LICENSE
	newdoc "${DISTDIR}/${P}-THIRD-PARTY-NOTICES" THIRD-PARTY-NOTICES

	insinto /etc/grok
	doins "${FILESDIR}/requirements.toml"
}

Inherited Eclasses

Manifest for 0.2.118

Type File Size Source URLs
DIST grok-build-bin-0.2.118-LICENSE 11388 bytes https://raw.githubusercontent.com/xai-org/grok-build/6e386420825bd44ae648c63e7c8cba12fcec9401/LICENSE
DIST grok-build-bin-0.2.118-THIRD-PARTY-NOTICES 762520 bytes https://raw.githubusercontent.com/xai-org/grok-build/6e386420825bd44ae648c63e7c8cba12fcec9401/THIRD-PARTY-NOTICES
DIST grok-build-bin-0.2.118-amd64 165481664 bytes https://x.ai/cli/grok-0.2.118-linux-x86_64