[arch-commits] Commit in npm/trunk (PKGBUILD)

Felix Yan fyan at archlinux.org
Sat Oct 17 16:03:57 UTC 2015


    Date: Saturday, October 17, 2015 @ 18:03:57
  Author: fyan
Revision: 144283

upgpkg: npm 3.3.8-2

fix path to call node-gyp (FS#46761)

Modified:
  npm/trunk/PKGBUILD

----------+
 PKGBUILD |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-10-17 14:55:49 UTC (rev 144282)
+++ PKGBUILD	2015-10-17 16:03:57 UTC (rev 144283)
@@ -3,7 +3,7 @@
 
 pkgname=npm
 pkgver=3.3.8
-pkgrel=1
+pkgrel=2
 pkgdesc='A package manager for javascript'
 arch=('any')
 url='https://www.npmjs.com/'
@@ -40,9 +40,9 @@
     done
   done
   
-  # Make symlink for node-gyp
-  #ln -s /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js "$pkgdir"/usr/bin/node-gyp
-  ln -s /usr/lib/node_modules/npm/bin/node-gyp-bin/node-gyp "$pkgdir"/usr/bin/node-gyp
+  # Provide node-gyp executable
+  cp "$pkgdir"/usr/lib/node_modules/npm/bin/node-gyp-bin/node-gyp "$pkgdir"/usr/bin/node-gyp
+  sed -i 's|"`dirname "$0"`/../../|"`dirname "$0"`/../lib/node_modules/npm/|' "$pkgdir"/usr/bin/node-gyp
   
   install -Dm644 "$srcdir/npm/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list