summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2021-01-03 12:54:59 -0500
committerMario Finelli2021-01-03 12:54:59 -0500
commitd1e65757c819b57da6334206829d2ee765745418 (patch)
tree741e5d9d39551f667cf5f6e78b4c79c0d6112907
parent6744825f2e989f0b17d6b8568af9dc816110e471 (diff)
downloadaur-d1e65757c819b57da6334206829d2ee765745418.tar.gz
Cleanup and update to 4.16.1
-rw-r--r--.SRCINFO10
-rw-r--r--PKGBUILD21
2 files changed, 19 insertions, 12 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e2086727728..f6d8a35774e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,15 @@
pkgbase = nodejs-express-generator
- pkgdesc = Express' application generator.
- pkgver = 4.16.0
+ pkgdesc = Express' application generator
+ pkgver = 4.16.1
pkgrel = 1
url = http://expressjs.com
arch = any
license = MIT
makedepends = npm
depends = nodejs
- noextract = express-generator-4.16.0.tgz
- source = https://registry.npmjs.org/express-generator/-/express-generator-4.16.0.tgz
- sha256sums = 51cc89db33fae44743d8efe674e6bc0b48b920ae8a58737d03181eedba37f565
+ noextract = express-generator-4.16.1.tgz
+ source = https://registry.npmjs.org/express-generator/-/express-generator-4.16.1.tgz
+ sha256sums = 130030d5df75bb8421c3e1e399f089f9436c9abe12b65ffe351f6def4948eeeb
pkgname = nodejs-express-generator
diff --git a/PKGBUILD b/PKGBUILD
index 6633b7d07d0..c6719faf3e2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,26 +2,33 @@
_npmname=express-generator
pkgname=nodejs-$_npmname
-pkgver=4.16.0
+pkgver=4.16.1
pkgrel=1
-pkgdesc="Express' application generator."
-arch=('any')
-url="http://expressjs.com"
-license=('MIT')
-depends=('nodejs')
+pkgdesc="Express' application generator"
+arch=(any)
+url=http://expressjs.com
+license=(MIT)
+depends=(nodejs)
makedepends=(npm)
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
-sha256sums=('51cc89db33fae44743d8efe674e6bc0b48b920ae8a58737d03181eedba37f565')
+sha256sums=('130030d5df75bb8421c3e1e399f089f9436c9abe12b65ffe351f6def4948eeeb')
package() {
npm install \
+ --cache "$srcdir/.npm-cache" \
--user root --global \
--prefix "$pkgdir/usr" \
"$srcdir"/$_npmname-$pkgver.tgz
find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+ # npm gives ownership of ALL FILES to build user
+ # https://bugs.archlinux.org/task/63396
+ chown -R root:root "${pkgdir}"
+
install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \
"$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
+
+# vim: set ts=2 sw=2 et: