npm: update to 3.7.2

This commit is contained in:
Jeff Huang 2016-02-15 07:49:22 +00:00
parent df59b02523
commit c9e924849c

View File

@ -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"
}