wok view node/receipt @ rev 25678
Patch ghostscript CVE-2023-36664
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 08 14:12:03 2024 +0100 (5 months ago) |
parents | bd7510903310 |
children |
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
34 ulimit -n 1048576
36 ./configure --prefix=/usr &&
37 make &&
38 make install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/lib
46 cp -a $install/usr/bin $fs/usr
47 cp -a $install/usr/lib/node* $fs/usr/lib
48 }