nodejs: update to 4.20

This commit is contained in:
gnastyle 2015-10-13 00:45:48 +02:00
parent 4137241d8b
commit c38aa05a1a

View File

@ -1,6 +1,6 @@
pkgname=nodejs
pkgver=0.12.7
pkgrel=2
pkgver=4.2.0
pkgrel=1
pkgdesc='Evented I/O for V8 javascript'
arch=('x86_64')
url='http://nodejs.org/'
@ -10,7 +10,7 @@ makedepends=('python2' 'procps-ng')
optdepends=('npm: nodejs package manager')
checkdepends=('curl')
source=("http://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz")
sha512sums=('0c9cb7542530463e7703435c8d819949785c1c6497c6d98f9854ca615fe33a62f451833e856f0159b836a698b4dee5d165fa505bad5d474f664e1533090d8606')
sha512sums=('c90b956cdb702f72e1cd6d37d3c264ab6c3b4d4f4046f4181e48946bde86983f58c94f67b2b5809e713f231cd27aae109c7c420a9007b91d35879b2de2ebc0f6')
prepare() {
cd node-v$pkgver
@ -20,6 +20,8 @@ prepare() {
-e 's_^#!/usr/bin/env python$_&2_' \
-e 's_^\(#!/usr/bin/python2\).[45]$_\1_' \
-e 's_^#!/usr/bin/python$_&2_' \
-e 's_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\
-e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\
-e "s_'python'_'python2'_" -i {} \;
find test/ -type f -exec sed 's_python _python2 _' -i {} \;
}
@ -32,7 +34,6 @@ build() {
--prefix=/usr \
--with-intl=system-icu \
--without-npm \
--shared-openssl \
--shared-zlib
make