Github messages for voidlinux
 help / color / mirror / Atom feed
From: reback00 <reback00@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: pnpm-5.8.0
Date: Sat, 03 Oct 2020 17:45:19 +0200	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25315@inbox.vuxu.org> (raw)

[-- 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"
+}

             reply	other threads:[~2020-10-03 15:45 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-03 15:45 reback00 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25315@inbox.vuxu.org \
    --to=reback00@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).