talimat 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. # Tanım: Node.js®, Chrome'un V8 JavaScript motorunda inşa edilmiş bir JavaScript çalışma zamanıdır.
  2. # URL: http://nodejs.org/
  3. # Paketçi: milisarge
  4. # Gerekler: python libuv icu http-parser c-ares libnghttp2
  5. # Grup: geliştirme
  6. isim=node
  7. surum=9.11.2
  8. devir=1
  9. kaynak=(http://nodejs.org/dist/v$surum/node-v$surum.tar.xz
  10. node.npm.sh)
  11. derle() {
  12. cd node-v$surum
  13. find -type f -exec sed \
  14. -e 's_^#!/usr/bin/env python$_&2_' \
  15. -e 's_^\(#!/usr/bin/python2\).[45]$_\1_' \
  16. -e 's_^#!/usr/bin/python$_&2_' \
  17. -e 's_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\
  18. -e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\
  19. -e "s_'python'_'python2'_" -i {} \;
  20. find test/ -type f -exec sed 's_python _python2 _' -i {} \;
  21. export PYTHON=python2
  22. ./configure \
  23. --prefix=/usr \
  24. --with-intl=system-icu \
  25. --shared-openssl \
  26. --shared-zlib \
  27. --shared-libuv \
  28. --shared-http-parser \
  29. --shared-cares \
  30. --shared-nghttp2
  31. make
  32. make DESTDIR=$PKG install
  33. ln -s ../lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js $PKG/usr/bin/node-gyp
  34. install -D -m 644 $SRC/node.npm.sh $PKG/usr/share/bash-completion/completions/npm
  35. }