dev-lang/bun-bin - 1.4.4 (guru)

Search

Install

Install this version:

emerge -a =dev-lang/bun-bin-1.4.4

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

autounmask =dev-lang/bun-bin-1.4.4

Or alternatively:

emerge --autounmask-write -a =dev-lang/bun-bin-1.4.4

Package Information

Description:
Fast all-in-one JavaScript runtime, bundler, transpiler, and package manager
Homepage:
https://bun.com/ https://github.com/oven-sh/bun/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.4.4 8 ~amd64 ~arm64 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="Fast all-in-one JavaScript runtime, bundler, transpiler, and package manager"
HOMEPAGE="https://bun.com/ https://github.com/oven-sh/bun/"

SRC_URI="
	amd64? ( https://github.com/oven-sh/bun/releases/download/bun-v${PV}/bun-linux-x64.zip -> ${P}-amd64.zip )
	arm64? ( https://github.com/oven-sh/bun/releases/download/bun-v${PV}/bun-linux-aarch64.zip -> ${P}-arm64.zip )
"

S="${WORKDIR}"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
RESTRICT="strip test"

BDEPEND="app-arch/unzip"

QA_PREBUILT="usr/bin/bun"

src_prepare() {
	default

	local bun_dir
	if use amd64; then
		bun_dir="bun-linux-x64"
	elif use arm64; then
		bun_dir="bun-linux-aarch64"
	else
		die "Unsupported architecture"
	fi

	mv "${bun_dir}"/bun . || die "Bun binary not found in ${WORKDIR}/${bun_dir}"
}

src_compile() {
	local shell
	for shell in bash fish zsh; do
		# set PATH to skip InstallCompletionsCommand::install_bunx_symlink() which causes sandbox violation
		PATH=. SHELL=${shell} ./bun completions > bun.${shell} || die
	done
}

src_install() {
	dobin bun
	dosym bun /usr/bin/bunx

	einstalldocs

	newbashcomp bun.bash bun
	newfishcomp bun.fish bun.fish
	newzshcomp bun.zsh _bun
}

Inherited Eclasses

Dependencies

BDEPEND

app-arch/unzip

Manifest for 1.4.4

Type File Size Source URLs
DIST bun-bin-1.4.4-amd64.zip 51794595 bytes https://github.com/oven-sh/bun/releases/download/bun-v1.4.4/bun-linux-x64.zip
DIST bun-bin-1.4.4-arm64.zip 51644673 bytes https://github.com/oven-sh/bun/releases/download/bun-v1.4.4/bun-linux-aarch64.zip