diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-14 14:12:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-14 14:12:27 +0000 |
commit | 750df4e2fe6fd161687dd41fd4a6d58269c77205 (patch) | |
tree | 47e1f46d55188efa387e80bf3c055e1492cf497f /main/nodejs/APKBUILD | |
parent | 2f6e0be781336f46287f56e93b70680451635219 (diff) | |
download | aports-750df4e2fe6fd161687dd41fd4a6d58269c77205.tar.bz2 aports-750df4e2fe6fd161687dd41fd4a6d58269c77205.tar.xz |
main/nodejs: moved from testing
Diffstat (limited to 'main/nodejs/APKBUILD')
-rw-r--r-- | main/nodejs/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/main/nodejs/APKBUILD b/main/nodejs/APKBUILD new file mode 100644 index 0000000000..dee7dfecab --- /dev/null +++ b/main/nodejs/APKBUILD @@ -0,0 +1,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" |