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