blob: 4a2689a93f0f7ce7e4e524d2ab0d712c052ee729 (
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
|
# Maintainer: Jose-Luis Rivas <ghostbar@riseup.net>
pkgname=nodejs
pkgver=6.5.0
pkgrel=0
pkgdesc='Evented I/O for V8 javascript'
url='http://nodejs.org/'
arch='all'
license='MIT'
# gold is needed for mksnapshot
makedepends="$depends_dev python openssl-dev zlib-dev libuv-dev
linux-headers paxmark binutils-gold"
subpackages="$pkgname-dev $pkgname-doc"
replaces="nodejs-lts"
source="https://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz"
_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"
./configure --prefix=/usr \
--shared-zlib \
--shared-libuv \
--shared-openssl \
|| return 1
# we need run mksnapshot at build time so paxmark it early
make -C out mksnapshot BUILDTYPE=Release \
&& paxmark -m out/Release/mksnapshot \
&& 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="43a0949a027b2eea92632f95600c21fb node-v6.5.0.tar.gz"
sha256sums="d7742558bb3331e41510d6e6f1f7b13c0527aecc00a63c3e05fcfd44427ff778 node-v6.5.0.tar.gz"
sha512sums="6235379a9635bbdf8e3ab65341fc21101647fd67fc38e462561bfd3257f7f0b34aef7b9bbb4c839ba58bb69796ee51f515a1d7dc16f6a17d0e5579aedbcabef1 node-v6.5.0.tar.gz"
|