# Template file for 'pnpm' pkgname=pnpm version=9.11.0 revision=1 build_style=fetch hostmakedepends="nodejs jq" depends="nodejs" short_desc="Fast, disk space efficient package manager" maintainer="Bnyro " license="MIT" homepage="https://pnpm.io/" distfiles="https://registry.npmjs.org/pnpm/-/pnpm-${version}.tgz" checksum=1c0e33f70e5df9eede84a357bdfa0b1f9dba6e58194628d48a1055756f553754 python_version=3 do_install() { npm install -g --user root --prefix "${DESTDIR}/usr" "${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tgz" local _npmdir="${DESTDIR}/usr/lib/node_modules/${pkgname}" # Delete JS SourceMaps find "${DESTDIR}/usr/lib" -depth -name '*.map' -delete vlicense "$_npmdir/LICENSE" vdoc "$_npmdir/README.md" rm -rf "${DESTDIR}/usr/etc" "$_npmdir/LICENSE" "$_npmdir/README.md" }