wok view node/receipt @ rev 25576

Up nimrod (1.6.12)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 13 17:57:27 2023 +0000 (19 months ago)
parents 241fb98cab1c
children 0a9d0d18ca64
line source
1 # SliTaz package receipt.
3 PACKAGE="node"
4 VERSION="10.15.3"
5 CATEGORY="network"
6 SHORT_DESC="Node.js is a platform for easily building network applications."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://nodejs.org/"
11 TARBALL="$PACKAGE-v$VERSION.tar.gz"
12 WGET_URL="https://nodejs.org/dist/v$VERSION/$TARBALL"
14 DEPENDS="gcc83-lib-base libssl python"
15 BUILD_DEPENDS="gcc83 openssl-dev python-dev"
17 #HOST_ARCH="i486 arm"
19 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://nodejs.org/en/download/ 2>/dev/null | \
23 sed '/latest/d;/node-v[0-9]/!d;/tar/!d;s|.*node-v||;s|.[a-z].*||' | sort -Vr | sed q
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 sed -i 's|uname -m|echo i486|' Makefile
30 export LD_LIBRARY_PATH="/usr/libgcc83:$LD_LIBRARY_PATH"
31 export LDFLAGS="$LDFLAGS -latomic"
32 export CC=gcc-83
33 export CXX=g++-83
35 ./configure --prefix=/usr &&
36 make &&
37 make install
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/usr/lib
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/lib/node* $fs/usr/lib
47 }