Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: pnpm-5.8.0
@ 2020-10-03 15:45 reback00
  2021-04-05  0:56 ` kwshi
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: reback00 @ 2020-10-03 15:45 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 553 bytes --]

There is a new pull request by reback00 against master on the void-packages repository

https://github.com/reback00/void-packages pnpm-branch
https://github.com/void-linux/void-packages/pull/25315

New package: pnpm-5.8.0
Fast, disk space efficient package manager for nodejs. One of the highlight features: saves a package once and symlinks on individual projects resulting in a great savings of disk space. Hope it's useful!

[website](https://pnpm.js.org/)

A patch file from https://github.com/void-linux/void-packages/pull/25315.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pnpm-branch-25315.patch --]
[-- Type: text/x-diff, Size: 1786 bytes --]

From 053585994154a7b4191025258cb1280096e9b924 Mon Sep 17 00:00:00 2001
From: reback00 <reback00@protonmail.com>
Date: Sat, 3 Oct 2020 21:40:52 +0600
Subject: [PATCH] New package: pnpm-5.8.0

---
 srcpkgs/pnpm/template | 35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 srcpkgs/pnpm/template

diff --git a/srcpkgs/pnpm/template b/srcpkgs/pnpm/template
new file mode 100644
index 00000000000..8395db1b641
--- /dev/null
+++ b/srcpkgs/pnpm/template
@@ -0,0 +1,35 @@
+# Template file for 'pnpm'
+pkgname=pnpm
+version=5.8.0
+revision=1
+# We won't use wrksrc, but it's needed to silence "cannot access wrksrc directory" error
+create_wrksrc=yes
+build_style=meta
+hostmakedepends="nodejs jq"
+depends="nodejs>=10.14"
+short_desc="Fast, disk space efficient package manager"
+maintainer="reback00 <reback00@protonmail.com>"
+license="MIT"
+homepage="https://pnpm.js.org/"
+distfiles="https://registry.npmjs.org/${pkgname}/-/${pkgname}-${version}.tgz"
+checksum=c1c6316f337aef60b984818bd4e99a609e43a58e574bf42e1ecc5a74cea2c572
+skip_extraction="${pkgname}-${version}.tgz"
+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}"
+
+	# Sort and cleanup package.json
+	local tmppackage="$(mktemp)"
+	jq '.|=with_entries(select(.key|test("_.+")|not))' "$_npmdir/package.json" > "$tmppackage"
+	mv "$tmppackage" "$_npmdir/package.json"
+	chmod 644 "$_npmdir/package.json"
+
+	# 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"
+}

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2021-04-12 17:05 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-03 15:45 [PR PATCH] New package: pnpm-5.8.0 reback00
2021-04-05  0:56 ` kwshi
2021-04-05  1:19 ` [PR REVIEW] " ericonr
2021-04-06 18:30 ` Chocimier
2021-04-06 18:30 ` Chocimier
2021-04-06 18:30 ` Chocimier
2021-04-11 17:27 ` [PR PATCH] [Updated] " reback00
2021-04-11 17:43 ` [PR REVIEW] New package: pnpm-6.0.1 reback00
2021-04-11 17:43 ` reback00
2021-04-11 17:44 ` reback00
2021-04-11 17:47 ` reback00
2021-04-11 17:49 ` reback00
2021-04-12  4:44 ` [PR PATCH] [Updated] " reback00
2021-04-12  4:48 ` [PR REVIEW] " reback00
2021-04-12 17:05 ` [PR PATCH] [Merged]: " Chocimier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).