From ff7f7efd4aa3dbba43ad600154faa2b55632b838 Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Sat, 14 Aug 2021 11:12:13 +0000 Subject: [PATCH] upgpkg: rollup 2.56.2-1 New upstream release. --- rollup/PKGBUILD | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/rollup/PKGBUILD b/rollup/PKGBUILD index d498601..b5256c7 100644 --- a/rollup/PKGBUILD +++ b/rollup/PKGBUILD @@ -2,7 +2,7 @@ # Contributor: George Rawlinson pkgname=rollup -pkgver=2.39.1 +pkgver=2.56.2 pkgrel=1 pkgdesc="Next-generation ES6 module bundler" arch=(any) @@ -10,22 +10,28 @@ url="https://rollupjs.org/" license=('MIT' 'ISC') depends=('nodejs') makedepends=('npm' 'jq') -source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") -noextract=("$pkgname-$pkgver.tgz") -b2sums=('373d17524836f0c1df65f7e5e7555f69835ff7a7875a5a73794639c3d99a2e54e9199cc1cf519fd90d7df4688163841eef7d8300e2468d5e2d50955085750b85') +source=("$pkgname-$pkgver.tar.gz::https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") +noextract=("$pkgname-$pkgver.tar.gz") +b2sums=('4ac03727dc2028a793b5bc83bf9f40b3c85d29383dcdf15de69645407946f2823edd83fca8fca7db927cc65546a1cb0716bd05c704f99a7a88ddf708956d65b3') package() { - # install package - npm install -g \ - --user root \ + local NPM_FLAGS=(--no-audit --no-fund --no-update-notifier) + + npm install \ + --global \ --prefix "$pkgdir/usr" \ --cache "$srcdir/npm-cache" \ - "$srcdir/$pkgname-$pkgver.tgz" + "${NPM_FLAGS[@]}" \ + "$pkgname-$pkgver.tar.gz" # install licenses install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" \ "$pkgdir/usr/lib/node_modules/rollup/LICENSE.md" + # install documentation + install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" \ + "$pkgdir/usr/lib/node_modules/rollup/"{CHANGELOG,README}.md + # remove references to ${src,pkg}dir local tmppackage="$(mktemp)" local pkgjson="$pkgdir/usr/lib/node_modules/$pkgname/package.json"