diff --git a/npm/PKGBUILD b/npm/PKGBUILD index 26e31701b..e4c14d1f8 100644 --- a/npm/PKGBUILD +++ b/npm/PKGBUILD @@ -1,5 +1,5 @@ pkgname=npm -pkgver=3.5.4 +pkgver=3.7.2 pkgrel=1 pkgdesc='A package manager for javascript' arch=('any') @@ -11,7 +11,7 @@ makedepends=('procps-ng') optdepends=('python2: for node-gyp') options=('!emptydirs') source=("https://github.com/${pkgname}/${pkgname}/archive/v${pkgver}.tar.gz") -sha256sums=('69e80c645758ab9839473e604f3a0cb1a66b06149e518b1abcbf62a8a45d28ba') +sha256sums=('955fe04aa8a02e557c2519dc25c9e75f5b263e424147a9e5a4112f2c3aa7ba1a') build() { cd ${pkgname}-${pkgver} @@ -37,8 +37,9 @@ package() { 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 + # 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/${pkgname}-${pkgver}/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }