# Maintainer: Thomas Dziedzic < gostrc at gmail > # Contributor: James Campos # Contributor: BlackEagle < ike DOT devolder AT gmail DOT com > # Contributor: Dongsheng Cai # Contributor: Masutu Subric # Contributor: TIanyi Cui pkgname=nodejs pkgver=0.4.10 pkgrel=1 pkgdesc='Evented I/O for V8 javascript' arch=('i686' 'x86_64' 'mips64el') url='http://nodejs.org/' license=('MIT') depends=('python2') makedepends=('curl') # curl used for check() optdepends=('openssl: TLS support') conflicts=('nodejs-unstable') source=("http://nodejs.org/dist/node-v${pkgver}.tar.gz") sha256sums=('57fa7ed5a818308ff485bb1c1a8ec8f1eb6a7800e14201dff65d88ce657da50a') build() { cd node-v${pkgver} # python2 fix for file in $(find . -name '*.py' -print) wscript tools/waf-light tools/node-waf do sed -i 's_^#!.*/usr/bin/python_#!/usr/bin/python2_' ${file} sed -i 's_^#!.*/usr/bin/env.*python_#!/usr/bin/env python2_' ${file} done sed -i "s|cmd_R = 'python |cmd_R = 'python2 |" wscript sed -i "s|python |python2 |" Makefile ./configure \ --prefix=/usr make } check() { cd node-v${pkgver} # only 1 test should fail afaik # === release test-http-dns-fail === # https://github.com/joyent/node/issues/703 make test || true } package() { cd node-v${pkgver} make DESTDIR=${pkgdir} install install -D -m644 LICENSE \ ${pkgdir}/usr/share/licenses/nodejs/LICENSE } # vim:set ts=2 sw=2 et: