pkg(node-15.10.0): switch to new build system

This commit is contained in:
Thomas Hobson 2021-03-06 01:23:51 +13:00
parent d36c23a5bf
commit a0e7d1b736
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
7 changed files with 23 additions and 23 deletions

View File

@ -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 $@

View File

@ -1 +0,0 @@
console.log("OK")

11
packages/node-15.10.0/build.sh vendored Executable file
View File

@ -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

1
packages/node-15.10.0/environment vendored Normal file
View File

@ -0,0 +1 @@
export PATH=$PWD/bin:$PATH

7
packages/node-15.10.0/metadata.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"language": "node",
"version": "15.10.0",
"author": "Martin Kos <martinkos007@gmail.com>",
"dependencies": {},
"aliases": ["node-javascript", "node-js", "javascript", "js"]
}

3
packages/node-15.10.0/run vendored Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
node $*

1
packages/node-15.10.0/test.js vendored Normal file
View File

@ -0,0 +1 @@
console.log("OK")