@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := node
PKG_NAME := node
PKG_VERSION := v4.4.5
PKG_VERSION := v4.4.5
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := node-$( PKG_VERSION) .tar.xz
PKG_SOURCE := node-$( PKG_VERSION) .tar.xz
PKG_SOURCE_URL := http://nodejs.org/dist/${ PKG_VERSION }
PKG_SOURCE_URL := http://nodejs.org/dist/${ PKG_VERSION }
@ -44,6 +44,19 @@ define Package/node/description
package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
e n d e f
e n d e f
d e f i n e P a c k a g e / n o d e - n p m
SECTION:= lang
CATEGORY:= Languages
SUBMENU:= Node.js
TITLE:= NPM stands for Node Package Manager
URL:= http://npmjs.com/
DEPENDS:= +node
e n d e f
d e f i n e P a c k a g e / n o d e - n p m / d e s c r i p t i o n
NPM is the package manager for NodeJS
e n d e f
CPU := $( subst aarch64,arm64,$( subst x86_64,x64,$( subst i386,ia32,$( ARCH) ) ) )
CPU := $( subst aarch64,arm64,$( subst x86_64,x64,$( subst i386,ia32,$( ARCH) ) ) )
MAKE_VARS += \
MAKE_VARS += \
@ -82,8 +95,13 @@ define Build/InstallDev
e n d e f
e n d e f
d e f i n e P a c k a g e / n o d e / i n s t a l l
d e f i n e P a c k a g e / n o d e / i n s t a l l
mkdir -p $( 1) /usr/bin
$( CP) $( PKG_INSTALL_DIR) /usr/bin/node $( 1) /usr/bin/
e n d e f
d e f i n e P a c k a g e / n o d e - n p m / i n s t a l l
mkdir -p $( 1) /usr/bin $( 1) /usr/lib/node_modules/npm/{ bin,lib,node_modules}
mkdir -p $( 1) /usr/bin $( 1) /usr/lib/node_modules/npm/{ bin,lib,node_modules}
$( CP) $( PKG_INSTALL_DIR) /usr/bin/{ node,npm} $( 1) /usr/bin/
$( CP) $( PKG_INSTALL_DIR) /usr/bin/npm $( 1) /usr/bin/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/node_modules/npm/{ package.json,LICENSE,cli.js} $( 1) /usr/lib/node_modules/npm
$( CP) $( PKG_INSTALL_DIR) /usr/lib/node_modules/npm/{ package.json,LICENSE,cli.js} $( 1) /usr/lib/node_modules/npm
$( CP) $( PKG_INSTALL_DIR) /usr/lib/node_modules/npm/bin/npm-cli.js $( 1) /usr/lib/node_modules/npm/bin
$( CP) $( PKG_INSTALL_DIR) /usr/lib/node_modules/npm/bin/npm-cli.js $( 1) /usr/lib/node_modules/npm/bin
$( CP) $( PKG_INSTALL_DIR) /usr/lib/node_modules/npm/lib/* $( 1) /usr/lib/node_modules/npm/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/node_modules/npm/lib/* $( 1) /usr/lib/node_modules/npm/lib/
@ -92,3 +110,4 @@ endef
$( eval $ ( call HostBuild ) )
$( eval $ ( call HostBuild ) )
$( eval $ ( call BuildPackage ,node ) )
$( eval $ ( call BuildPackage ,node ) )
$( eval $ ( call BuildPackage ,node -npm ) )