pkg(deno-1.7.5): Migrate to new version

This commit is contained in:
Thomas Hobson 2021-03-06 00:44:25 +13:00
parent 49c761311b
commit 21af84aaab
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
6 changed files with 21 additions and 22 deletions

11
packages/deno-1.7.5/build.sh vendored Executable file
View File

@ -0,0 +1,11 @@
mkdir -p output build
cd build
curl -L https://github.com/denoland/deno/releases/download/v1.7.5/deno-x86_64-unknown-linux-gnu.zip --output deno.zip
unzip deno.zip
cd ..
mv build/deno output
chmod +x output/deno

1
packages/deno-1.7.5/environment vendored Normal file
View File

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

7
packages/deno-1.7.5/metadata.json vendored Normal file
View File

@ -0,0 +1,7 @@
{
"language": "deno",
"version": "1.7.5",
"author": "Thomas Hobson <thomas@hexf.me>",
"dependencies": {},
"aliases": ["deno-ts", "deno-js"]
}

2
packages/deno-1.7.5/run vendored Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
DENO_DIR=$PWD deno run $*

View File

@ -1,22 +0,0 @@
NAME=deno
AUTHOR=Thomas Hobson <thomas@hexf.me>
DEPENDENCIES=
COMPILED=false
VERSIONS=1.7.5
include common.mk
${RUN_FILE}:
echo 'deno run $$*' > $@
${ENV_FILE}:
echo 'export PATH=$$PWD:$$PATH' > $@
${BIN_DIR}: ${BUILD_DIR}deno-x86_64-unknown-linux-gnu/
mkdir -p $@
mv $</deno $@
chmod +x $@/deno
${BUILD_DIR}deno-x86_64-unknown-linux-gnu.zip:
curl -L "https://github.com/denoland/deno/releases/download/v${VERSION}/deno-x86_64-unknown-linux-gnu.zip" -o $@