diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-07 10:12:38 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-03-07 10:13:50 +0000 |
commit | 687be5472fec1e9f2dd9fb61ee82f75a531bba73 (patch) | |
tree | a4de4052aa5caa4bf79474f6ec059e1196fda00b /testing/nodejs/APKBUILD | |
parent | e56db141ce09c403f59621b4e56a8025a387ef6c (diff) | |
download | aports-687be5472fec1e9f2dd9fb61ee82f75a531bba73.tar.bz2 aports-687be5472fec1e9f2dd9fb61ee82f75a531bba73.tar.xz |
testing/nodejs: upgrade to 0.10.25 and build with more sys libs
Diffstat (limited to 'testing/nodejs/APKBUILD')
-rw-r--r-- | testing/nodejs/APKBUILD | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/testing/nodejs/APKBUILD b/testing/nodejs/APKBUILD new file mode 100644 index 000000000..a57385fea --- /dev/null +++ b/testing/nodejs/APKBUILD @@ -0,0 +1,36 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> + +pkgname=nodejs +pkgver=0.10.25 +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="153bdbf77b4473df2600b8ce123ef331 node-v0.10.25.tar.gz" +sha256sums="46eef3b9d5475a2081dc2b2f7cf1f4c3a56824d1fc9b04e7ed1d7a88e8f6b36f node-v0.10.25.tar.gz" +sha512sums="1e37c14d49fa51b23e56016d490760072e0d076c34e44e6464545024af57f079a017ec33214e9465d79277d80b76085916a76df624da9bfd45b6de6554047e48 node-v0.10.25.tar.gz" |