# $Id: PKGBUILD 187811 2016-08-27 04:14:37Z felixonmars $ # Maintainer: Felix Yan # Contributor Bartłomiej Piotrowski # Contributor: 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=6.5.0 pkgrel=2 pkgdesc='Evented I/O for V8 javascript' arch=('i686' 'x86_64') url='http://nodejs.org/' license=('MIT') depends=('openssl' 'zlib' 'icu' 'libuv' 'http-parser') # 'v8') makedepends=('python2' 'procps-ng' 'git') optdepends=('npm: nodejs package manager') source=("git+https://github.com/nodejs/node.git#tag=v$pkgver" "https://codereview.chromium.org/download/issue2310513002_1_10001.diff") sha256sums=('SKIP' '1dcb3912c6bfcd25f21bb3df426196f14d619898846af766c0efcf797e00a203') prepare() { cd node msg 'Fixing gcc6 coredump' patch -p1 -i ../../issue2310513002_1_10001.diff deps/v8/build/toolchain.gypi 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_^\( *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 {} \; } build() { cd node export PYTHON=python2 ./configure \ --prefix=/usr \ --with-intl=system-icu \ --without-npm \ --shared-openssl \ --shared-zlib \ --shared-libuv \ --shared-http-parser # --shared-v8 make } check() { cd node make test || warning "Tests failed" } package() { cd node make DESTDIR="$pkgdir" install install -D -m644 LICENSE \ "$pkgdir"/usr/share/licenses/nodejs/LICENSE } # vim:set ts=2 sw=2 et: