Install this version:
emerge -a =dev-util/grok-build-bin-1.0.46
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-util/grok-build-bin-1.0.46
Or alternatively:
emerge --autounmask-write -a =dev-util/grok-build-bin-1.0.46
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.0.46 | 8 | -* ~amd64 | 0 |
# 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="07e35a3dfeed2f200d319ef6c893b5ea286d9a51"
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"
}
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | grok-build-bin-1.0.46-LICENSE | 11388 bytes | https://raw.githubusercontent.com/xai-org/grok-build/07e35a3dfeed2f200d319ef6c893b5ea286d9a51/LICENSE |
| DIST | grok-build-bin-1.0.46-THIRD-PARTY-NOTICES | 763905 bytes | https://raw.githubusercontent.com/xai-org/grok-build/07e35a3dfeed2f200d319ef6c893b5ea286d9a51/THIRD-PARTY-NOTICES |
| DIST | grok-build-bin-1.0.46-amd64 | 171207616 bytes | https://x.ai/cli/grok-1.0.46-linux-x86_64 |