[arch-commits] Commit in npm/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Dec 2 02:13:55 UTC 2017
Date: Saturday, December 2, 2017 @ 02:13:54
Author: felixonmars
Revision: 271255
upgpkg: npm 5.6.0-1
Modified:
npm/trunk/PKGBUILD
----------+
PKGBUILD | 19 +++++++------------
1 file changed, 7 insertions(+), 12 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-12-02 01:04:26 UTC (rev 271254)
+++ PKGBUILD 2017-12-02 02:13:54 UTC (rev 271255)
@@ -2,8 +2,8 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
pkgname=npm
-pkgver=5.5.1
-pkgrel=2
+pkgver=5.6.0
+pkgrel=1
pkgdesc='A package manager for javascript'
arch=('any')
url='https://www.npmjs.com/'
@@ -13,20 +13,12 @@
makedepends=('procps-ng' 'marked-man')
optdepends=('python2: for node-gyp')
options=('!emptydirs')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/npm/archive/v$pkgver.tar.gz"
- https://github.com/nodejs/node/commit/9f33a248b37ed5acb31cffe2483d5dfc3db89521.patch
- https://github.com/nodejs/node/commit/b8888f5aa2deb41b7ab03d3085124eef398e461e.patch)
-sha512sums=('e1839f089784f0d40b94720fb06dafd8a84247e69d65b45d79e5e67ecd69ee8c9fbb5284bcc7ea9104c91267a069c8e5c8f5abb8f6061448faeddd2c70c0bb3c'
- '1e504615ef37c3d83f1ee76995a7ebc35a31e45db55f38e0f807cd900d4acd9dac6ae439368b723caa5820d3807b028a966beb092f265eece6961478cbb65a37'
- '17c22de3636978cf49722aca793d7660225bf1bbcc11e45ed1287de475023d6f032d74f2ca000ae9a92d308e6faa99a3c62e2be625f9f92da8883996ab6f5134')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/npm/npm/archive/v$pkgver.tar.gz")
+sha512sums=('1fe2ad002eaa4afff9d1ff1b401da19fdb59d770989a9b02771fb183c2131906e7a0ee930404fd8fdcb6d8b1f23368d9241587500483ad6beebbf00f7ff8070c')
prepare() {
cd npm-$pkgver
ln -sf /usr/bin/marked{,-man} node_modules/.bin/
-
- # backported nodejs 9.x support from node repo
- patch -p3 -i ../9f33a248b37ed5acb31cffe2483d5dfc3db89521.patch
- patch -p3 -i ../b8888f5aa2deb41b7ab03d3085124eef398e461e.patch
}
build() {
@@ -54,5 +46,8 @@
done
done
+ install -dm755 "$pkgdir"/usr/share/bash-completion/completions
+ node "$srcdir"/npm-$pkgver/bin/npm-cli.js completion > "$pkgdir"/usr/share/bash-completion/completions/npm
+
install -Dm644 "$srcdir"/npm-$pkgver/LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list