wok-next diff node/receipt @ rev 20667
qemu/qemu-light: race condition, ppp/sane-backends: set group
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 11 09:27:12 2018 +0200 (2018-05-11) |
parents | c4e53a39395a |
children | fe6dc47f7d21 |
line diff
1.1 --- a/node/receipt Fri Mar 02 12:12:14 2018 +0200 1.2 +++ b/node/receipt Fri May 11 09:27:12 2018 +0200 1.3 @@ -1,30 +1,41 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="node" 1.8 -VERSION="0.10.41" 1.9 +VERSION="9.5.0" 1.10 CATEGORY="network" 1.11 -SHORT_DESC="Node.js is a platform for easily building network applications." 1.12 +SHORT_DESC="Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine" 1.13 MAINTAINER="pankso@slitaz.org" 1.14 LICENSE="MIT" 1.15 -TARBALL="$PACKAGE-v$VERSION.tar.gz" 1.16 -WEB_SITE="http://nodejs.org/" 1.17 -WGET_URL="http://nodejs.org/dist/v$VERSION/$TARBALL" 1.18 +WEB_SITE="https://nodejs.org/" 1.19 +LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/nodejs.html" 1.20 1.21 -DEPENDS="python openssl" 1.22 -BUILD_DEPENDS="python-dev openssl-dev" 1.23 +TARBALL="$PACKAGE-v$VERSION.tar.xz" 1.24 +WGET_URL="https://nodejs.org/dist/v$VERSION/$TARBALL" 1.25 1.26 -# Rules to configure and make the package. 1.27 -compile_rules() 1.28 -{ 1.29 - #patch -p0 < ${stuff}/SConstruct.patch || return 1 1.30 - ./configure --prefix=/usr && 1.31 - make && make install 1.32 +BUILD_DEPENDS="python-dev zlib-dev c-ares-dev openssl-dev icu-dev" 1.33 +SPLIT="node-dev" 1.34 + 1.35 +compile_rules() { 1.36 + # site script didn't used, define prefix here 1.37 + ./configure \ 1.38 + --prefix=/usr \ 1.39 + --shared-cares \ 1.40 + --shared-openssl \ 1.41 + --shared-zlib \ 1.42 + --with-intl=system-icu \ 1.43 + && 1.44 + make && 1.45 + make install 1.46 } 1.47 1.48 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 -genpkg_rules() 1.50 -{ 1.51 - mkdir -p $fs/usr/lib 1.52 - cp -a $install/usr/bin $fs/usr 1.53 - cp -a $install/usr/lib/node* $fs/usr/lib 1.54 +genpkg_rules() { 1.55 + case $PACKAGE in 1.56 + node) 1.57 + copy @std 1.58 + DEPENDS="c-ares icu libicu openssl python zlib" 1.59 + ;; 1.60 + *-dev) 1.61 + copy @dev 1.62 + ;; 1.63 + esac 1.64 }