30 lines
764 B
Bash
30 lines
764 B
Bash
# 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
|
|
}
|