[arch-commits] Commit in grunt-cli/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Thu Jun 10 21:32:16 UTC 2021
Date: Thursday, June 10, 2021 @ 21:32:15
Author: felixonmars
Revision: 961781
upgpkg: grunt-cli 1.4.3-2
Modified:
grunt-cli/trunk/PKGBUILD
----------+
PKGBUILD | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-10 21:31:43 UTC (rev 961780)
+++ PKGBUILD 2021-06-10 21:32:15 UTC (rev 961781)
@@ -5,12 +5,12 @@
pkgname=grunt-cli
pkgver=1.4.3
-pkgrel=1
+pkgrel=2
pkgdesc="The grunt command line interface."
arch=('any')
url="https://gruntjs.com/"
license=('MIT')
-depends=('nodejs')
+depends=('nodejs' 'nodejs-nopt')
makedepends=('npm')
source=("https://registry.npmjs.org/$pkgname/-/$pkgname-$pkgver.tgz"
"$pkgname-$pkgver.LICENSE::https://github.com/gruntjs/grunt-cli/raw/v$pkgver/LICENSE-MIT")
@@ -29,6 +29,12 @@
# https://bugs.archlinux.org/task/63396
chown -R root:root "$pkgdir"
+ # Experimental dedup
+ cd "$pkgdir"/usr/lib/node_modules/$pkgname/node_modules
+ for dep in nopt; do
+ rm -r $dep;
+ done
+
# install completions properly
install -Dm644 "$pkgdir"/usr/lib/node_modules/grunt-cli/completion/bash \
"$pkgdir"/usr/share/bash-completion/completions/grunt-cli
More information about the arch-commits
mailing list