2017-04-05 13:54:14 +02:00
|
|
|
|
# Description: Node.js®, Chrome'un V8 JavaScript motorunda inşa edilmiş bir JavaScript çalışma zamanıdır.
|
2016-02-24 01:27:23 +01:00
|
|
|
|
# URL: http://nodejs.org/
|
2017-04-05 13:54:14 +02:00
|
|
|
|
# Packager: milisarge
|
|
|
|
|
# Depends on: python
|
|
|
|
|
|
2016-02-24 01:27:23 +01:00
|
|
|
|
name=node
|
|
|
|
|
version=4.0.0
|
|
|
|
|
release=1
|
|
|
|
|
|
|
|
|
|
source=(http://nodejs.org/dist/v$version/node-v$version.tar.gz
|
|
|
|
|
node.npm.sh)
|
|
|
|
|
build() {
|
|
|
|
|
cd $name-v$version
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
|
--shared-openssl \
|
|
|
|
|
--shared-zlib
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
|
|
|
|
|
# add missing symlink
|
|
|
|
|
ln -s ../lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js $PKG/usr/bin/node-gyp
|
|
|
|
|
# Add bash completion file for npm.
|
|
|
|
|
install -D -m 644 $SRC/node.npm.sh \
|
|
|
|
|
$PKG/usr/share/bash-completion/completions/npm
|
|
|
|
|
}
|