blob: 772ce1cde0adc8b64c47d6cd22a5d327b7bcac80 (
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
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=nodejs
pkgver=0.12.2
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 \
paxmark libuv-dev linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="http://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
make -C out BUILDTYPE=Release mksnapshot || return 1
paxmark -m out/Release/mksnapshot || 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="b7f4a9f2e361a7026789a7d6c45a6d30 node-v0.12.2.tar.gz"
sha256sums="ac7e78ade93e633e7ed628532bb8e650caba0c9c33af33581957f3382e2a772d node-v0.12.2.tar.gz"
sha512sums="42599fa5c1afebb875059ba343dde1890d67963b506fe961b652bd2e4d1a09a4bc331bb5fb446af1068c6940bb14e3e0b703958009fd44d1d69421168e7febe7 node-v0.12.2.tar.gz"
|