-
Notifications
You must be signed in to change notification settings - Fork 697
/
APKBUILD
37 lines (33 loc) · 1.16 KB
/
APKBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Contributor: William Pitcock <[email protected]>
# Maintainer: Natanael Copa <[email protected]>
pkgname=nodejs
pkgver=0.10.28
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="87768be7065d2120e71619948ab4bb2d node-v0.10.28.tar.gz"
sha256sums="abddc6441e0f208f6ed8a045e0293f713ea7f6dfb2d6a9a2024bf8b1b4617710 node-v0.10.28.tar.gz"
sha512sums="2a5b47a6cc4e9534bc2ab92d209cee16a21ee533a08235cbf0631cbc23b8cbe744f3356c66af819984abe7142a536bc4456e7ab383b0d1a10983cc1568414ae7 node-v0.10.28.tar.gz"