diff --git a/nodejs/PKGBUILD b/nodejs/PKGBUILD index 3dcdbbee8..9d850b3bb 100644 --- a/nodejs/PKGBUILD +++ b/nodejs/PKGBUILD @@ -9,7 +9,7 @@ # Contributor: TIanyi Cui pkgname=nodejs -pkgver=0.6.19 +pkgver=0.8.0 pkgrel=1 pkgdesc="Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications." arch=('i686' 'x86_64') @@ -19,21 +19,12 @@ depends=('python2' 'openssl') checkdepends=('curl') # curl used for check() options=('!emptydirs') source=("http://nodejs.org/dist/v${pkgver}/node-v${pkgver}.tar.gz") -md5sums=('f5669a9717422b811c6bad1cc961b1e5') +md5sums=('7efde00ad3292d4c56ad607ab676d935') build() { cd "node-v${pkgver}" - msg "Fixing for python2 name" - find -type f -exec sed -e 's_^#!/usr/bin/env python$_&2_' -e 's_^\(#!/usr/bin/python2\).[45]$_\1_' -e 's_^#!/usr/bin/python$_&2_' -e "s_'python'_'python2'_" -i \{\} \; - find './test' -type f -exec sed -e 's|python |python2 |' -i \{\} \; - sed -i "s|cmd_R = 'python |cmd_R = 'python2 |" wscript - sed -i "s|python |python2 |" Makefile - find './test' -type f -exec sed -e 's/python/&2/' -i \{\} \; - sed -i 's/python/&2/' configure - export PYTHON=python2 - ./configure --prefix=/usr make @@ -41,10 +32,7 @@ build() { check() { cd "node-v${pkgver}" - - # test failures in 0.6 are known - # specifically https://github.com/joyent/node/pull/1699 - make test || true + make test } package() {