summaryrefslogtreecommitdiff
path: root/pcr/nodejs-grunt-cli
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/nodejs-grunt-cli')
-rw-r--r--pcr/nodejs-grunt-cli/PKGBUILD8
1 files changed, 3 insertions, 5 deletions
diff --git a/pcr/nodejs-grunt-cli/PKGBUILD b/pcr/nodejs-grunt-cli/PKGBUILD
index 1ef6cb8e7..15148bce5 100644
--- a/pcr/nodejs-grunt-cli/PKGBUILD
+++ b/pcr/nodejs-grunt-cli/PKGBUILD
@@ -12,16 +12,14 @@ arch=('any')
url="http://gruntjs.com/"
license=('MIT')
depends=('nodejs' 'npm')
-source=(https://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
+source=(http://registry.npmjs.org/$_npmname/-/$_npmname-$pkgver.tgz)
noextract=($_npmname-$pkgver.tgz)
sha256sums=('e639404d7b66ae2821edabc681104a1f035910ff20a2e21d67329c2a7674a443')
+options=('!emptydirs')
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
-
- rmdir "$pkgdir"/usr/etc
+ npm install --user root -g grunt-cli --prefix "$pkgdir/usr" ## Packagers note: It is not possible to package this inside a clean offline chroot due to NPM bug #2568.
} \ No newline at end of file