wok annotate node/receipt @ rev 20715

tor 0.3.5.7
author Erkan Yilmaz <erkan@slitaz.org>
date Thu Feb 07 09:37:17 2019 +0000 (2019-02-07)
parents 3705d68ed8f3
children 140cbdeb8974
rev   line source
pankso@12020 1 # SliTaz package receipt.
pankso@12020 2
pankso@12020 3 PACKAGE="node"
pascal@19588 4 VERSION="6.9.2"
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"
pankso@12020 9 TARBALL="$PACKAGE-v$VERSION.tar.gz"
pascal@20682 10 WEB_SITE="https://nodejs.org/"
pankso@12020 11 WGET_URL="http://nodejs.org/dist/v$VERSION/$TARBALL"
pankso@16509 12 #HOST_ARCH="i486 arm"
pankso@12020 13
pascal@19588 14 DEPENDS="python libssl gcc49-lib-base"
pascal@19588 15 BUILD_DEPENDS="python-dev openssl-dev gcc49"
pankso@12020 16
pankso@12020 17 # Rules to configure and make the package.
pankso@12020 18 compile_rules()
pankso@12020 19 {
pascal@20212 20 sed -i 's|uname -m|echo i486|' Makefile
pascal@19588 21 export LD_LIBRARY_PATH="/usr/libgcc49:$LD_LIBRARY_PATH"
pascal@19588 22 export CXX=/usr/bin/i486-slitaz-linux-g++-49
pascal@19588 23 export CC=/usr/bin/i486-slitaz-linux-gcc-49
pankso@12020 24 ./configure --prefix=/usr &&
pankso@12020 25 make && make install
pankso@12020 26 }
pankso@12020 27
pankso@12020 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12020 29 genpkg_rules()
pankso@12020 30 {
pankso@12020 31 mkdir -p $fs/usr/lib
pankso@12020 32 cp -a $install/usr/bin $fs/usr
pankso@12020 33 cp -a $install/usr/lib/node* $fs/usr/lib
pankso@12020 34 }