wok-6.x view node/receipt @ rev 25248
updated python-webob (1.8.6 -> 1.8.7)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jul 14 07:26:47 2022 +0100 (2022-07-14) |
parents | 241fb98cab1c |
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
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 }