blob: c4ef80a670efaa6d6a6a67dcd8a5044986fb4eac (
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
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=nodejs
pkgver=0.10.31
pkgrel=0
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 c-ares-dev
paxctl"
subpackages="$pkgname-dev $pkgname-doc"
source="http://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz"
build() {
cd "$srcdir"/node-v$pkgver
./configure --prefix=/usr \
--shared-zlib \
--shared-libuv \
--shared-cares \
--shared-openssl || return 1
make -C out BUILDTYPE=Release mksnapshot || return 1
paxctl -c -m out/Release/mksnapshot || return 1
make || return 1
}
package() {
local d
cd "$srcdir"/node-v$pkgver
make DESTDIR="$pkgdir" install || return 1
# paxmark so JIT works
paxctl -cm "$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="1b65fe749f8e542a56a71af2b8c3a74a node-v0.10.31.tar.gz"
sha256sums="06c781718a674dfdfb59d646b2629a46af2644bdbf52534fab8d4a0fe34c21f1 node-v0.10.31.tar.gz"
sha512sums="10bc330be118bc3b853c319de51b875db3737a76da7c371c57ef2f044e8225cc24156da91eef6a36f1e415a7e4992f501cce05349e6160a21e44f7ed7dda4592 node-v0.10.31.tar.gz"
|