new ebuild sys-apps/pnpm-bin-11.7.0
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Copyright 2023-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Fast, disk space efficient package manager, alternative to npm and yarn"
|
||||
HOMEPAGE="https://pnpm.io"
|
||||
SRC_URI="
|
||||
amd64? ( https://github.com/pnpm/pnpm/releases/download/v${PV}/pnpm-linux-x64.tar.gz -> ${P}-amd64.tar.gz )
|
||||
arm64? ( https://github.com/pnpm/pnpm/releases/download/v${PV}/pnpm-linux-arm64.tar.gz -> ${P}-arm64.tar.gz )
|
||||
"
|
||||
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~arm64"
|
||||
|
||||
RESTRICT="strip"
|
||||
|
||||
RDEPEND="!net-libs/nodejs[corepack]"
|
||||
|
||||
QA_PREBUILT="usr/bin/pnpm"
|
||||
|
||||
src_install() {
|
||||
into /usr/lib/pnpm
|
||||
cp -R "${S}/dist" "${S}/pnpm" "${D}/usr/lib/pnpm/" || die "Install failed!"
|
||||
dosym ../lib/pnpm/pnpm /usr/bin/pnpm
|
||||
}
|
||||
Reference in New Issue
Block a user