milis/talimatname/genel/n/node/talimat

43 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# Tanım: Node.js®, Chrome'un V8 JavaScript motorunda inşa edilmiş bir JavaScript çalışma zamanıdır.
# URL: http://nodejs.org/
# Paketçi: milisarge
2018-07-01 17:34:25 +02:00
# Gerekler: python libuv icu http-parser c-ares libnghttp2
# Grup: geliştirme
2018-06-09 00:06:58 +02:00
isim=node
2018-07-01 22:59:01 +02:00
surum=9.11.2
2018-06-09 00:06:58 +02:00
devir=1
kaynak=(http://nodejs.org/dist/v$surum/node-v$surum.tar.xz
2018-07-01 17:34:25 +02:00
node.npm.sh)
2018-06-09 00:06:58 +02:00
derle() {
2018-07-01 17:34:25 +02:00
2018-06-09 00:06:58 +02:00
cd node-v$surum
2018-07-01 17:34:25 +02:00
find -type f -exec sed \
-e 's_^#!/usr/bin/env python$_&2_' \
-e 's_^\(#!/usr/bin/python2\).[45]$_\1_' \
-e 's_^#!/usr/bin/python$_&2_' \
-e 's_^\( *exec \+\)python\( \+.*\)$_\1python2\2_'\
-e 's_^\(.*\)python\( \+-c \+.*\)$_\1python2\2_'\
-e "s_'python'_'python2'_" -i {} \;
find test/ -type f -exec sed 's_python _python2 _' -i {} \;
export PYTHON=python2
./configure \
--prefix=/usr \
--with-intl=system-icu \
--shared-openssl \
--shared-zlib \
--shared-libuv \
--shared-http-parser \
--shared-cares \
--shared-nghttp2
2018-06-09 00:06:58 +02:00
make
make DESTDIR=$PKG install
ln -s ../lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js $PKG/usr/bin/node-gyp
install -D -m 644 $SRC/node.npm.sh $PKG/usr/share/bash-completion/completions/npm
}