diff --git a/dev-lang/bun-bin/Manifest b/dev-lang/bun-bin/Manifest new file mode 100644 index 0000000000..8401ec6105 --- /dev/null +++ b/dev-lang/bun-bin/Manifest @@ -0,0 +1,2 @@ +DIST bun-bin-1.3.14-amd64.zip 35969274 BLAKE2B 6c291c5900761de1d6dbefc0e7ad4f293a4cf24a132a107cffa467eda4050f44f5ca2aa5e0b35f95c31bd56101578dea0f0d8ae04de06d1a066180d5ee7f1fc7 SHA512 31f054acf7341023d8d21d935faa4c4608c8efbbde8e3a8a4c344dd8b78e438b84b8f377318ac03b4b3c7d0fa4ff387e2864c87e5f704e2ed0e47dda38c35995 +DIST bun-bin-1.3.14-arm64.zip 35700603 BLAKE2B c03b5322154d593d998cb5cd3c21977c4e816bc5f262649bf293cc82395e999f8744057c10e74a9e67e10258f6657cee95cf2996724bfc7d435a4e44bb8d83b3 SHA512 4818f9df42d57e3116de3d525d544c5dda1b9be5be3f38b0d2db923232f4345d50123cca2b36f271c822fad1207e005dc85fcc1287185b6e5630038d5a382e7d diff --git a/dev-lang/bun-bin/bun-bin-1.3.14.ebuild b/dev-lang/bun-bin/bun-bin-1.3.14.ebuild new file mode 100644 index 0000000000..8ac7ab8d8a --- /dev/null +++ b/dev-lang/bun-bin/bun-bin-1.3.14.ebuild @@ -0,0 +1,38 @@ +# Copyright 2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Fast all-in-one JavaScript runtime, bundler, transpiler, and package manager" +HOMEPAGE="https://bun.sh/ 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_install() { + 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 + + cd "${bun_dir}" || die "Directory ${bun_dir} not found in extracted zip" + + dobin bun +} diff --git a/dev-lang/bun-bin/metadata.xml b/dev-lang/bun-bin/metadata.xml new file mode 100644 index 0000000000..3879443267 --- /dev/null +++ b/dev-lang/bun-bin/metadata.xml @@ -0,0 +1,12 @@ + + + + + Robert Greener + me@r0bert.dev + + + oven-sh/bun + https://github.com/oven-sh/bun/issues + +