aboutsummaryrefslogtreecommitdiffstats
path: root/testing/nodejs/APKBUILD
blob: fe5acb8e03c851c14b132282a667c9d711ad9772 (plain)
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
38
39
40
41
42
43
44
45
46
47
48
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer:
pkgname=nodejs
pkgver=0.4.2
pkgrel=0
pkgdesc="event-oriented javascript framework and execution environment"
url="http://nodejs.org/"

# v8 is not portable so we have to list archs by hand
arch="x86 x86_64 arm"

license="MIT BSD Apache-2"
depends=
depends_dev=
makedepends="$depends_dev python libev-dev c-ares-dev openssl-dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://nodejs.org/dist/node-v${pkgver}.tar.gz
	nodejs-uclibc.patch
	nodejs-multiplicity.patch"

_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 "$_builddir"
	./configure --prefix=/usr \
		--shared-cares \
		--shared-libev
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="9e9e791e125f6a601ebc663dc99c72a8  node-v0.4.2.tar.gz
b5d7568f58bb9a14d5b9a971e89560c6  nodejs-uclibc.patch
912d504d56fb194b4ceda8f693f6e200  nodejs-multiplicity.patch"