Package Details: nodejs-resume-cli 3.0.4-2

Git Clone URL: (read-only, click to copy)
Package Base: nodejs-resume-cli
Description: The command line tool for JSON Resume
Upstream URL:
Licenses: MIT
Submitter: matoro
Maintainer: matoro
Last Packager: matoro
Votes: 0
Popularity: 0.000000
First Submitted: 2017-09-15 02:03
Last Updated: 2021-02-25 00:31

Latest Comments

matoro commented on 2021-02-25 00:32

Pkgrel has been bumped, sorry.

VannTen commented on 2021-02-24 09:24

The current PKGBUILD does not work, due to a potentially misnamed source.

Sorry about that. I tested it before proposing the patch but

==> Retrieving sources...
  -> Found resume-cli-3.0.4.tgz

I think it did not re-download it since the archive was already there, so I did not spot the error.

StephenBrown2 commented on 2021-02-24 04:17

Could you also bump the pkgrel version? yay is still trying to grab the broken PKGBUILD for me since the version hasn't changed.

amaanhub commented on 2021-02-21 23:09

Wow, thanks for sorting that out so fast. It appears to be working on my end too. Ignoring the first 7 characters with ${pkgname:7} is cool, I've learned something new!

matoro commented on 2021-02-21 22:48

Sorry about that. It's been fixed and actually tested before pushing this time.

amaanhub commented on 2021-02-21 22:24

The current PKGBUILD does not work, due to a potentially misnamed source. The source should point to .

I noticed in the previous version it points to the correct source as you explicitly make a variable that is the npm package name which is called in source (source=("${_npmname}/-/${_npmname}-${_npmver}.tgz")) though you are calling source=("${pkgname}/-/${pkgname}-${pkgver}.tgz") now so it is looking for a package called nodejs-resume-cli.

First comment here so apologies for any formatting errors.

VannTen commented on 2021-02-07 10:36

I'll suggest the following patch to update the version and remove srcdir ref as indicated by the Node.js arch package guidelines.

From 77ffc12311a952b984b2d5f88fb04d5397ab6f07 Mon Sep 17 00:00:00 2001
From: Max Gautier <>
Date: Sun, 7 Feb 2021 11:34:18 +0100
Subject: [PATCH] Version + remove scrdir ref

 PKGBUILD | 45 ++++++++++++++++++++++++++++++---------------
 1 file changed, 30 insertions(+), 15 deletions(-)

diff --git a/PKGBUILD b/PKGBUILD
index 0c63fb8..9f1f20b 100644
@@ -1,23 +1,38 @@
 pkgdesc="The command line tool for JSON Resume"
-depends=('nodejs' 'npm')
+makedepends=('npm' 'jq')

 package() {
-    cd ${srcdir}
-    local _npmdir="${pkgdir}/usr/lib/node_modules/"
-    mkdir -p ${_npmdir}
-    cd ${_npmdir}
-    npm install -g --prefix "${pkgdir}/usr" ${_npmname}@${_npmver}
+   npm install -g --user root --prefix "$pkgdir/usr" "$srcdir/$pkgname-$pkgver.tgz"
+   # Non-deterministic race in npm gives 777 permissions to random directories.
+   # See for details.
+   find "$pkgdir/usr" -type d -exec chmod 755 {} +

-# vim:set ts=2 sw=2 et:
+   # Remove references to $pkgdir
+   find "$pkgdir" -type f -name package.json -exec sed -i "/_where/d" {} +
+   # Remove references to $srcdir
+   local tmppackage="$(mktemp)"
+   local pkgjson="$pkgdir/usr/lib/node_modules/$pkgname/package.json"
+   jq '.|=with_entries(select(.key|test("_.+")|not))' "$pkgjson" > "$tmppackage"
+   mv "$tmppackage" "$pkgjson"
+   chmod 644 "$pkgjson"
+   find "$pkgdir" -type f -name package.json | while read pkgjson; do
+       local tmppackage="$(mktemp)"
+       jq 'del(.man)' "$pkgjson" > "$tmppackage"
+       mv "$tmppackage" "$pkgjson"
+       chmod 644 "$pkgjson"
+   done