mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
72 lines
2.2 KiB
Bash
72 lines
2.2 KiB
Bash
# Maintainer: Felix Yan <felixonmars@archlinux.org>
|
|
# Contributor Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
|
# Contributor: Thomas Dziedzic < gostrc at gmail >
|
|
# Contributor: James Campos <james.r.campos@gmail.com>
|
|
# Contributor: BlackEagle < ike DOT devolder AT gmail DOT com >
|
|
# Contributor: Dongsheng Cai <dongsheng at moodle dot com>
|
|
# Contributor: Masutu Subric <masutu.arch at googlemail dot com>
|
|
# Contributor: TIanyi Cui <tianyicui@gmail.com>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - set config and gyp flags
|
|
|
|
buildarch=28
|
|
|
|
pkgname=nodejs
|
|
pkgver=16.11.1
|
|
pkgrel=1
|
|
pkgdesc='Evented I/O for V8 javascript'
|
|
arch=('x86_64')
|
|
url='https://nodejs.org/'
|
|
license=('MIT')
|
|
depends=('openssl' 'zlib' 'icu' 'libuv' 'libnghttp2' 'c-ares') # 'http-parser' 'v8')
|
|
makedepends=('python' 'procps-ng')
|
|
optdepends=('npm: nodejs package manager')
|
|
source=("https://github.com/nodejs/node/archive/v$pkgver/nodejs-$pkgver.tar.gz"
|
|
system-c-ares.patch)
|
|
sha512sums=('d508a408b9d783db34f70e67b4c4fa9cb04b84caa0f397086c4691b15b159c0c5d2aa7a33c403f7ac82fb3c23f867c7aaa5f4f9d85f5c5e8b95bda29e0ce8247'
|
|
'bca85b5a4622b38f20f3787bdb2784db76cd4b213fadf8a5813a375080e7481c4aff7556712d59df3e19849a7eb6b2f048a69b4e2162cb717ab1b3a791d2558e')
|
|
|
|
prepare() {
|
|
patch -d node-$pkgver -Rp1 < system-c-ares.patch
|
|
}
|
|
|
|
build() {
|
|
cd node-$pkgver
|
|
|
|
[[ "$CARCH" == "armv6h" ]] && export CONFIG="--with-arm-float-abi=hard --with-arm-fpu=vfp" && export GYPFLAGS="-Darm_thumb -Darm_float_abi=hard -Darm_version=6 -Darm_fpu=vfpv2"
|
|
[[ "$CARCH" == "armv7h" ]] && export CONFIG="--with-arm-float-abi=hard --with-arm-fpu=vfpv3-d16" && export GYPFLAGS="-Darm_thumb -Darm_float_abi=hard -Darm_version=7 -Darm_fpu=vfpv3-d16"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--with-intl=system-icu \
|
|
--without-npm \
|
|
--shared-openssl \
|
|
--shared-zlib \
|
|
--shared-libuv \
|
|
--experimental-http-parser \
|
|
--shared-nghttp2 \
|
|
--shared-cares \
|
|
${CONFIG}
|
|
# --shared-cares \
|
|
# --shared-v8
|
|
# --shared-http-parser
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd node-$pkgver
|
|
make test || :
|
|
}
|
|
|
|
package() {
|
|
cd node-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -D -m644 LICENSE \
|
|
"$pkgdir"/usr/share/licenses/nodejs/LICENSE
|
|
}
|
|
|
|
# vim:set ts=2 sw=2 et:
|