blob: 6cb252fb63688a6138580eda556a937a72c62882 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=nodejs
pkgver=4.3.2
pkgrel=1
pkgdesc='Evented I/O for V8 javascript'
url='http://nodejs.org/'
arch='all'
license='MIT'
makedepends="$depends_dev python openssl-dev zlib-dev libuv-dev
linux-headers paxmark"
subpackages="$pkgname-dev $pkgname-doc"
source="http://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz
disable-v8-snapshots.patch
CVE-2017-1000381.patch"
_builddir="$srcdir"/node-v$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
[ "$CARCH" = "armhf" ] && local _FPU="--with-arm-fpu=vfpv3-d16"
./configure --prefix=/usr \
--shared-zlib \
--shared-libuv \
$_FPU \
--shared-openssl \
--without-snapshot || return 1
make || return 1
}
package() {
local d
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
# paxmark so JIT works
paxmark -m "$pkgdir"/usr/bin/node || return 1
cp -pr "$pkgdir"/usr/lib/node_modules/npm/man "$pkgdir"/usr/share || return 1
for d in doc html man; do
rm -r "$pkgdir"/usr/lib/node_modules/npm/$d || return 1
done
}
md5sums="f08960ee686899b80e8539815154f4b5 node-v4.3.2.tar.gz
d998206a37c79196a51357960cd130b6 disable-v8-snapshots.patch
50254b0414ef2c8714bb6c33e2f6b465 CVE-2017-1000381.patch"
sha256sums="1f92f6d31f7292ce56db57d6703efccf3e6c945948f5901610cefa69e78d3498 node-v4.3.2.tar.gz
9cdf57315d194a33edd3215cb51e255d4b12eb8698768eed1e746342d0a834a8 disable-v8-snapshots.patch
13a6636d71c834b75e939755e37271542dfceeddd4fb0d74bfa01d949a201d76 CVE-2017-1000381.patch"
sha512sums="9a97ba4482baf6900144f64f9c43629e9e141048158e94281d8c1fae57a8f883e1cafb98c89040ba492779ebf87eb7e608c322fa8a5b119ce82aef7df7e3e2b7 node-v4.3.2.tar.gz
c0a65e05a0bc12423bde8741dd35258017d6c649e8308bd791fc3734a2308ef41af813096274473f7ff3d05dafce3c647ba09c9e4ee75605d9cd20a0ae9c9084 disable-v8-snapshots.patch
57738244c3b0484f24a0082cf3f1d582dead809a3962e89a692c288829c4a4e5dd60695dbe6a76081db1dbc92bf6f9dcfaff892b99f9985aff5d4231d9a13145 CVE-2017-1000381.patch"
|