mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
dev-lang/bun-bin: new package, add 1.3.14
Signed-off-by: Robert Greener <me@r0bert.dev>
This commit is contained in:
38
dev-lang/bun-bin/bun-bin-1.3.14.ebuild
Normal file
38
dev-lang/bun-bin/bun-bin-1.3.14.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user