void-packages/srcpkgs/nodejs/template

35 lines
775 B
Plaintext

# Template file for 'nodejs'
pkgname=nodejs
version=0.10.0
revision=1
wrksrc=node-v${version}
short_desc="Evented I/O for V8 javascript"
maintainer="davehome <davehome@redthumb.info.tm>"
license="MIT"
homepage="http://nodejs.org/"
distfiles="${homepage}/dist/v${version}/node-v${version}.tar.gz"
checksum=1624dc37866ebfb5431e3393e6b049cf238cac8ad4d20c6d567263b1259177ab
makedepends="pkg-config openssl-devel v8-devel zlib-devel python"
do_configure() {
export LD="$CXX"
./configure --prefix=/usr --openssl-use-sys --shared-v8 --shared-zlib
}
do_build() {
make LD="$CXX" ${makejobs}
}
do_install() {
make LD="$CXX" DESTDIR="$DESTDIR" install
vinstall LICENSE 644 usr/share/licenses/${pkgname}
}
nodejs_package() {
depends="python"
pkg_install() {
vmove usr
}
}