# SliTaz package receipt. PACKAGE="node" VERSION="10.15.3" CATEGORY="network" SHORT_DESC="Node.js is a platform for easily building network applications." MAINTAINER="pankso@slitaz.org" LICENSE="MIT" WEB_SITE="https://nodejs.org/" TARBALL="$PACKAGE-v$VERSION.tar.gz" WGET_URL="https://nodejs.org/dist/v$VERSION/$TARBALL" DEPENDS="gcc83-lib-base libssl python" BUILD_DEPENDS="gcc83 openssl-dev python-dev" #HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - https://nodejs.org/en/download/ 2>/dev/null | \ sed '/latest/d;/node-v[0-9]/!d;/tar/!d;s|.*node-v||;s|.[a-z].*||' | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { sed -i 's|uname -m|echo i486|' Makefile export LD_LIBRARY_PATH="/usr/libgcc83:$LD_LIBRARY_PATH" export LDFLAGS="$LDFLAGS -latomic" export CC=gcc-83 export CXX=g++-83 ./configure --prefix=/usr && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/node* $fs/usr/lib }