aboutsummaryrefslogtreecommitdiffstats
path: root/main/nodejs/APKBUILD
blob: dee7dfecab90fcaec9179ef1a277f3c6383bc8db (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
# Contributor: William Pitcock <nenolod@dereferenced.org>

pkgname=nodejs
pkgver=0.10.26
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() {
	cd "$srcdir"/node-v$pkgver
	make DESTDIR="$pkgdir" install || return 1
	# paxmark so JIT works
	paxctl -cm "$pkgdir"/usr/bin/node || return 1
}

md5sums="15e9018dadc63a2046f61eb13dfd7bd6  node-v0.10.26.tar.gz"
sha256sums="ef5e4ea6f2689ed7f781355012b942a2347e0299da0804a58de8e6281c4b1daa  node-v0.10.26.tar.gz"
sha512sums="2a114b0fc89e3403f503044ae85284553a6b7c844b390619242dd7c3505c579753a8f52807b1fa5c4e0caec8762517a77f4be017a5b2df98045a9b86bcc4f2c6  node-v0.10.26.tar.gz"