mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-28 12:51:44 +01:00
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
# 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"
|