wok-next annotate node/receipt @ rev 20806

I. node update: security -> https://nodejs.org/en/blog/vulnerability/june-2018-security-releases/ 9.5.0 -> 9.11.2 II. add checksum
author Erkan Yilmaz <erkan@slitaz.org>
date Wed Jun 13 08:26:54 2018 +0000 (2018-06-13)
parents b1a1deb20f42
children 4e6503d7a19f
rev   line source
al@20659 1 # SliTaz package receipt v2.
pankso@12020 2
pankso@12020 3 PACKAGE="node"
erkan@20806 4 VERSION="9.11.2"
pankso@12020 5 CATEGORY="network"
al@20659 6 SHORT_DESC="Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine"
pankso@12020 7 MAINTAINER="pankso@slitaz.org"
pascal@15503 8 LICENSE="MIT"
al@20659 9 WEB_SITE="https://nodejs.org/"
al@20659 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/general/nodejs.html"
pankso@12020 11
al@20659 12 TARBALL="$PACKAGE-v$VERSION.tar.xz"
al@20659 13 WGET_URL="https://nodejs.org/dist/v$VERSION/$TARBALL"
erkan@20806 14 # Integrity check: https://nodejs.org/dist/v9.11.2/
erkan@20806 15 TARBALL_SHA256="06484eac7f6b7c87e96983a039422347c0047284bc4d373d90884ae3966dc213"
pankso@12020 16
al@20659 17 BUILD_DEPENDS="python-dev zlib-dev c-ares-dev openssl-dev icu-dev"
al@20659 18 SPLIT="node-dev"
al@20659 19
al@20659 20 compile_rules() {
al@20659 21 # site script didn't used, define prefix here
al@20659 22 ./configure \
al@20659 23 --prefix=/usr \
al@20659 24 --shared-cares \
al@20659 25 --shared-openssl \
al@20659 26 --shared-zlib \
al@20659 27 --with-intl=system-icu \
al@20659 28 &&
al@20659 29 make &&
al@20659 30 make install
pankso@12020 31 }
pankso@12020 32
al@20659 33 genpkg_rules() {
al@20659 34 case $PACKAGE in
al@20659 35 node)
al@20659 36 copy @std
al@20659 37 DEPENDS="c-ares icu libicu openssl python zlib"
al@20659 38 ;;
al@20659 39 *-dev)
al@20659 40 copy @dev
al@20659 41 ;;
al@20659 42 esac
pankso@12020 43 }