# Contributor: William Pitcock # Maintainer: Eivind Uggedal pkgname=nodejs pkgver=0.10.30 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 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="bae597a31bf6d23da1c4217bfed611dc node-v0.10.30.tar.gz" sha256sums="3dfcbd307f5f5f266ef174e1443107da853cd3d0aa0b2493a44235d5908625d2 node-v0.10.30.tar.gz" sha512sums="7d82eba5bab8b0ac67f6773a03f650dee67bf42fe3b0b2cc5ca581e00170c000a63e0f7ba966ce31e6f2202af7b1179c44b138932f55df39f85b48389097c240 node-v0.10.30.tar.gz"