# Contributor: William Pitcock # Maintainer: Eivind Uggedal pkgname=nodejs pkgver=0.10.29 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="e14ea9f46f9beecdf4e9423fb626c70b node-v0.10.29.tar.gz" sha256sums="47379d01f765f87c1a1498b4e65de30e45201de50334954860d7375a8258b15d node-v0.10.29.tar.gz" sha512sums="f59a47561b24f7bef09f42916d9a3af5d5a400001a04e7d39f8c73e1daaa8bc535096398e1a733175cf4efccf4c3e46dd91552eea2832f1d3b5c75084ed7d28d node-v0.10.29.tar.gz"