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

Felix Yan felixonmars at archlinux.org
Thu Nov 16 15:23:31 UTC 2017


    Date: Thursday, November 16, 2017 @ 15:23:30
  Author: felixonmars
Revision: 266981

upgpkg: npm 5.5.1-2

backport nodejs 9.x support from node repo

Modified:
  npm/trunk/PKGBUILD

----------+
 PKGBUILD |   14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-16 15:19:05 UTC (rev 266980)
+++ PKGBUILD	2017-11-16 15:23:30 UTC (rev 266981)
@@ -3,7 +3,7 @@
 
 pkgname=npm
 pkgver=5.5.1
-pkgrel=1
+pkgrel=2
 pkgdesc='A package manager for javascript'
 arch=('any')
 url='https://www.npmjs.com/'
@@ -13,12 +13,20 @@
 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")
-sha512sums=('e1839f089784f0d40b94720fb06dafd8a84247e69d65b45d79e5e67ecd69ee8c9fbb5284bcc7ea9104c91267a069c8e5c8f5abb8f6061448faeddd2c70c0bb3c')
+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')
 
 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() {



More information about the arch-commits mailing list