aboutsummaryrefslogtreecommitdiffstats
path: root/main/nodejs/APKBUILD
blob: 677c0d15d6c9a8764123836dd84f9e1113e2737a (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.33
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="626ca8a4f8fec4df49c78ed53d46f1f7  node-v0.10.33.tar.gz"
sha256sums="75dc26c33144e6d0dc91cb0d68aaf0570ed0a7e4b0c35f3a7a726b500edd081e  node-v0.10.33.tar.gz"
sha512sums="ddf4f1bc81ceda8c16953676728f4a7a1462b6bf25b97b3e70c8503307caea71377c5694573d09ccb54ca487910c04cef8dabf2f80a3ac7b1f76604791ea2cd7  node-v0.10.33.tar.gz"