wok view node/receipt @ rev 24002
Up tazinst (109)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 16 11:02:29 2021 +0000 (2021-01-16) |
parents | 140cbdeb8974 |
children | 241fb98cab1c |
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="http://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 # Rules to configure and make the package.
20 compile_rules()
21 {
22 sed -i 's|uname -m|echo i486|' Makefile
23 export LD_LIBRARY_PATH="/usr/libgcc83:$LD_LIBRARY_PATH"
24 export LDFLAGS="$LDFLAGS -latomic"
25 export CC=gcc-83
26 export CXX=g++-83
28 ./configure --prefix=/usr &&
29 make &&
30 make install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/lib/node* $fs/usr/lib
40 }