aboutsummaryrefslogtreecommitdiffstats
path: root/main/nodejs
diff options
context:
space:
mode:
Diffstat (limited to 'main/nodejs')
-rw-r--r--main/nodejs/APKBUILD31
1 files changed, 20 insertions, 11 deletions
diff --git a/main/nodejs/APKBUILD b/main/nodejs/APKBUILD
index 05d39d5a5e..772ce1cde0 100644
--- a/main/nodejs/APKBUILD
+++ b/main/nodejs/APKBUILD
@@ -1,23 +1,33 @@
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=nodejs
-pkgver=0.10.33
-pkgrel=1
+pkgver=0.12.2
+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
- paxmark"
+makedepends="$depends_dev python openssl-dev zlib-dev libuv-dev c-ares-dev \
+ paxmark libuv-dev linux-headers"
subpackages="$pkgname-dev $pkgname-doc"
source="http://nodejs.org/dist/v$pkgver/node-v$pkgver.tar.gz"
+_builddir="$srcdir"/node-v$pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
build() {
- cd "$srcdir"/node-v$pkgver
+ cd "$_builddir"
./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
@@ -26,8 +36,7 @@ build() {
package() {
local d
-
- cd "$srcdir"/node-v$pkgver
+ cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
# paxmark so JIT works
paxmark -m "$pkgdir"/usr/bin/node || return 1
@@ -38,6 +47,6 @@ package() {
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"
+md5sums="b7f4a9f2e361a7026789a7d6c45a6d30 node-v0.12.2.tar.gz"
+sha256sums="ac7e78ade93e633e7ed628532bb8e650caba0c9c33af33581957f3382e2a772d node-v0.12.2.tar.gz"
+sha512sums="42599fa5c1afebb875059ba343dde1890d67963b506fe961b652bd2e4d1a09a4bc331bb5fb446af1068c6940bb14e3e0b703958009fd44d1d69421168e7febe7 node-v0.12.2.tar.gz"