wok-current annotate node/receipt @ rev 24828
updated libshout and libshout-dev again (2.4.3 -> 2.4.5)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Mar 23 17:27:54 2022 +0100 (2022-03-23) |
parents | 65a24133b39d |
children | bd7510903310 |
rev | line source |
---|---|
pankso@12020 | 1 # SliTaz package receipt. |
pankso@12020 | 2 |
pankso@12020 | 3 PACKAGE="node" |
Hans-G?nter@21547 | 4 VERSION="10.15.3" |
pankso@12020 | 5 CATEGORY="network" |
pankso@12020 | 6 SHORT_DESC="Node.js is a platform for easily building network applications." |
pankso@12020 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15503 | 8 LICENSE="MIT" |
Hans-G?nter@21547 | 9 WEB_SITE="https://nodejs.org/" |
Hans-G?nter@21547 | 10 |
pankso@12020 | 11 TARBALL="$PACKAGE-v$VERSION.tar.gz" |
pankso@12020 | 12 WGET_URL="http://nodejs.org/dist/v$VERSION/$TARBALL" |
Hans-G?nter@21547 | 13 |
Hans-G?nter@23226 | 14 DEPENDS="gcc83-lib-base libssl python" |
Hans-G?nter@23226 | 15 BUILD_DEPENDS="gcc83 openssl-dev python-dev" |
Hans-G?nter@21547 | 16 |
pankso@16509 | 17 #HOST_ARCH="i486 arm" |
pankso@12020 | 18 |
pascal@24453 | 19 # What is the latest version available today? |
pascal@24453 | 20 current_version() |
pascal@24453 | 21 { |
pascal@24453 | 22 wget -O - https://nodejs.org/en/download/ 2>/dev/null | \ |
pascal@24453 | 23 sed '/latest/d;/node-v[0-9]/!d;/tar/!d;s|.*node-v||;s|.[a-z].*||' | sort -Vr | sed q |
pascal@24453 | 24 } |
pascal@24453 | 25 |
pankso@12020 | 26 # Rules to configure and make the package. |
pankso@12020 | 27 compile_rules() |
pankso@12020 | 28 { |
pascal@20212 | 29 sed -i 's|uname -m|echo i486|' Makefile |
Hans-G?nter@21547 | 30 export LD_LIBRARY_PATH="/usr/libgcc83:$LD_LIBRARY_PATH" |
Hans-G?nter@23226 | 31 export LDFLAGS="$LDFLAGS -latomic" |
Hans-G?nter@21547 | 32 export CC=gcc-83 |
Hans-G?nter@21547 | 33 export CXX=g++-83 |
Hans-G?nter@21547 | 34 |
pankso@12020 | 35 ./configure --prefix=/usr && |
Hans-G?nter@21547 | 36 make && |
Hans-G?nter@21547 | 37 make install |
pankso@12020 | 38 } |
pankso@12020 | 39 |
pankso@12020 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12020 | 41 genpkg_rules() |
pankso@12020 | 42 { |
pankso@12020 | 43 mkdir -p $fs/usr/lib |
Hans-G?nter@21547 | 44 |
Hans-G?nter@21547 | 45 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@21547 | 46 cp -a $install/usr/lib/node* $fs/usr/lib |
pankso@12020 | 47 } |