community/nodejs to 7.9.0-1

This commit is contained in:
Kevin Mihelich 2017-04-24 19:11:39 +00:00
parent 74fe8918eb
commit e46d7a1f79

View file

@ -9,19 +9,19 @@
# Contributor: Jason Plum <jplum@archlinuxarm.org>
pkgname=nodejs
pkgver=7.7.3
pkgver=7.9.0
pkgrel=1
pkgdesc='Evented I/O for V8 javascript'
arch=('i686' 'x86_64')
url='http://nodejs.org/'
license=('MIT')
provides=('nodejs-node-gyp')
depends=('openssl' 'zlib' 'icu' 'libuv' 'http-parser' 'c-ares') # 'v8')
makedepends=('python2' 'procps-ng' 'git')
depends=('openssl-1.0' 'zlib' 'icu' 'libuv' 'http-parser' 'c-ares') # 'v8')
makedepends=('python2' 'procps-ng')
optdepends=('npm: nodejs package manager')
source=("nodejs::git+https://github.com/nodejs/node.git#tag=v$pkgver"
source=("nodejs-$pkgver.tar.gz::https://github.com/nodejs/node/archive/v$pkgver.tar.gz"
'0001-arm-fixes.patch')
sha256sums=('SKIP'
sha256sums=('77b8f773ad7eca17e56e8d25f66be862999d6479a06767efe5ccf64f2dfd03ea'
'6115d4500d16254cc706e8a4f534f714f3fac7e3b90a06d19264246a55e7f36a')
set_flags_for_arm() {
@ -44,7 +44,7 @@ set_flags_for_arm() {
}
prepare() {
cd nodejs
cd node-$pkgver
patch -p1 -i ../0001-arm-fixes.patch
@ -60,8 +60,9 @@ prepare() {
}
build() {
cd nodejs
cd node-$pkgver
export PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig
export PYTHON=python2
set_flags_for_arm
@ -100,13 +101,13 @@ build() {
}
check() {
cd nodejs
cd node-$pkgver
# Expected failure: https://github.com/nodejs/node/issues/11627
make test || warning "Tests failed"
}
package() {
cd nodejs
cd node-$pkgver
# suppress re-compile(with out customized flags) by 'make install'.
set_flags_for_arm