summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario Finelli2018-11-23 07:59:01 -0500
committerMario Finelli2018-11-23 07:59:01 -0500
commit6744825f2e989f0b17d6b8568af9dc816110e471 (patch)
treebe49697fd62cda2510a1b860d1329efc4db2ca63
parentd7f3847009d48aafe63aad664fe462df3bb09b60 (diff)
downloadaur-6744825f2e989f0b17d6b8568af9dc816110e471.tar.gz
Bump to 4.16.0
-rw-r--r--.SRCINFO12
-rw-r--r--PKGBUILD21
2 files changed, 18 insertions, 15 deletions
diff --git a/.SRCINFO b/.SRCINFO
index d7f2ca7ceae..e2086727728 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,17 +1,15 @@
-# Generated by mksrcinfo v8
-# Thu Apr 27 15:32:34 UTC 2017
pkgbase = nodejs-express-generator
pkgdesc = Express' application generator.
- pkgver = 4.15.0
+ pkgver = 4.16.0
pkgrel = 1
url = http://expressjs.com
arch = any
license = MIT
+ makedepends = npm
depends = nodejs
- depends = npm
- noextract = express-generator-4.15.0.tgz
- source = https://registry.npmjs.org/express-generator/-/express-generator-4.15.0.tgz
- sha256sums = b573e6fadbbf29f8aeaaf6ede7398377acde27bc050b03af38e3753311e830c7
+ noextract = express-generator-4.16.0.tgz
+ source = https://registry.npmjs.org/express-generator/-/express-generator-4.16.0.tgz
+ sha256sums = 51cc89db33fae44743d8efe674e6bc0b48b920ae8a58737d03181eedba37f565
pkgname = nodejs-express-generator
diff --git a/PKGBUILD b/PKGBUILD
index 9e437169ad1..6633b7d07d0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,21 +2,26 @@
_npmname=express-generator
pkgname=nodejs-$_npmname
-pkgver=4.15.0
+pkgver=4.16.0
pkgrel=1
pkgdesc="Express' application generator."
arch=('any')
url="http://expressjs.com"
license=('MIT')
-depends=('nodejs' 'npm')
+depends=('nodejs')
+makedepends=(npm)
source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
-sha256sums=('b573e6fadbbf29f8aeaaf6ede7398377acde27bc050b03af38e3753311e830c7')
+sha256sums=('51cc89db33fae44743d8efe674e6bc0b48b920ae8a58737d03181eedba37f565')
package() {
- cd "$srcdir"
- local _npmdir="$pkgdir/usr/lib/node_modules/"
- mkdir -p "$_npmdir"
- cd "$_npmdir"
- npm install --user root -g --prefix "$pkgdir/usr" $_npmname@$pkgver
+ npm install \
+ --user root --global \
+ --prefix "$pkgdir/usr" \
+ "$srcdir"/$_npmname-$pkgver.tgz
+
+ find "$pkgdir/usr" -type d -exec chmod 755 '{}' +
+
+ install -Dm0644 "$pkgdir/usr/lib/node_modules/$_npmname/LICENSE" \
+ "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}