upgpkg: rollup 2.56.2-1

New upstream release.
This commit is contained in:
George Rawlinson 2021-08-14 11:12:13 +00:00
parent 458f4c942e
commit ff7f7efd4a
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

View file

@ -2,7 +2,7 @@
# Contributor: George Rawlinson <george@rawlinson.net.nz> # Contributor: George Rawlinson <george@rawlinson.net.nz>
pkgname=rollup pkgname=rollup
pkgver=2.39.1 pkgver=2.56.2
pkgrel=1 pkgrel=1
pkgdesc="Next-generation ES6 module bundler" pkgdesc="Next-generation ES6 module bundler"
arch=(any) arch=(any)
@ -10,22 +10,28 @@ url="https://rollupjs.org/"
license=('MIT' 'ISC') license=('MIT' 'ISC')
depends=('nodejs') depends=('nodejs')
makedepends=('npm' 'jq') makedepends=('npm' 'jq')
source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz") source=("$pkgname-$pkgver.tar.gz::https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz")
noextract=("$pkgname-$pkgver.tgz") noextract=("$pkgname-$pkgver.tar.gz")
b2sums=('373d17524836f0c1df65f7e5e7555f69835ff7a7875a5a73794639c3d99a2e54e9199cc1cf519fd90d7df4688163841eef7d8300e2468d5e2d50955085750b85') b2sums=('4ac03727dc2028a793b5bc83bf9f40b3c85d29383dcdf15de69645407946f2823edd83fca8fca7db927cc65546a1cb0716bd05c704f99a7a88ddf708956d65b3')
package() { package() {
# install package local NPM_FLAGS=(--no-audit --no-fund --no-update-notifier)
npm install -g \
--user root \ npm install \
--global \
--prefix "$pkgdir/usr" \ --prefix "$pkgdir/usr" \
--cache "$srcdir/npm-cache" \ --cache "$srcdir/npm-cache" \
"$srcdir/$pkgname-$pkgver.tgz" "${NPM_FLAGS[@]}" \
"$pkgname-$pkgver.tar.gz"
# install licenses # install licenses
install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" \ install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" \
"$pkgdir/usr/lib/node_modules/rollup/LICENSE.md" "$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 # remove references to ${src,pkg}dir
local tmppackage="$(mktemp)" local tmppackage="$(mktemp)"
local pkgjson="$pkgdir/usr/lib/node_modules/$pkgname/package.json" local pkgjson="$pkgdir/usr/lib/node_modules/$pkgname/package.json"