pkg(node-15.10.0): switch to new build system
This commit is contained in:
parent
d36c23a5bf
commit
a0e7d1b736
|
@ -1,22 +0,0 @@
|
||||||
NAME=javascript-node
|
|
||||||
AUTHOR=Martin Kos <martinkos007@gmail.com>
|
|
||||||
DEPENDENCIES=
|
|
||||||
COMPILED=false
|
|
||||||
VERSIONS=14.16.0 15.10.0
|
|
||||||
|
|
||||||
include common.mk
|
|
||||||
|
|
||||||
|
|
||||||
${RUN_FILE}:
|
|
||||||
echo 'node $$*' > $@
|
|
||||||
|
|
||||||
${ENV_FILE}:
|
|
||||||
echo 'export PATH=$$PWD/bin:$$PATH' > $@
|
|
||||||
|
|
||||||
${BIN_DIR}: ${BUILD_DIR}node-${VERSION}-sources/
|
|
||||||
mkdir -p $@
|
|
||||||
mv $<bin/node $@
|
|
||||||
chmod +x $@/node
|
|
||||||
|
|
||||||
${BUILD_DIR}node-${VERSION}-sources.tar.xz:
|
|
||||||
curl "https://nodejs.org/dist/v${VERSION}/node-v${VERSION}-linux-x64.tar.xz" -o $@
|
|
|
@ -1 +0,0 @@
|
||||||
console.log("OK")
|
|
|
@ -0,0 +1,11 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mkdir -p build output
|
||||||
|
|
||||||
|
cd build
|
||||||
|
|
||||||
|
curl "https://nodejs.org/dist/v15.10.0/node-v15.10.0-linux-x64.tar.xz" -o node.tar.xz
|
||||||
|
tar xf node.tar.xz --strip-components=1
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
mv build/bin/node output
|
|
@ -0,0 +1 @@
|
||||||
|
export PATH=$PWD/bin:$PATH
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"language": "node",
|
||||||
|
"version": "15.10.0",
|
||||||
|
"author": "Martin Kos <martinkos007@gmail.com>",
|
||||||
|
"dependencies": {},
|
||||||
|
"aliases": ["node-javascript", "node-js", "javascript", "js"]
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
node $*
|
|
@ -0,0 +1 @@
|
||||||
|
console.log("OK")
|
Loading…
Reference in New Issue