talimat 758 B

123456789101112131415161718192021222324252627
  1. # Description: Node.js®, Chrome'un V8 JavaScript motorunda inşa edilmiş bir JavaScript çalışma zamanıdır.
  2. # URL: http://nodejs.org/
  3. # Packager: milisarge
  4. # Depends on: python
  5. name=node
  6. version=4.0.0
  7. release=1
  8. source=(http://nodejs.org/dist/v$version/node-v$version.tar.gz
  9. node.npm.sh)
  10. build() {
  11. cd $name-v$version
  12. ./configure --prefix=/usr \
  13. --shared-openssl \
  14. --shared-zlib
  15. make
  16. make DESTDIR=$PKG install
  17. # add missing symlink
  18. ln -s ../lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js $PKG/usr/bin/node-gyp
  19. # Add bash completion file for npm.
  20. install -D -m 644 $SRC/node.npm.sh \
  21. $PKG/usr/share/bash-completion/completions/npm
  22. }