From 39adb13ba1910e440ad9beb2ba95e1f6f0bb06c5 Mon Sep 17 00:00:00 2001 From: Thomas Hobson Date: Sun, 14 Mar 2021 01:24:59 +1300 Subject: [PATCH] pkg(dart-2.12.1): Added dart 2.12.1 --- packages/dart/2.12.1/build.sh | 11 +++++++++++ packages/dart/2.12.1/environment | 4 ++++ packages/dart/2.12.1/metadata.json | 6 ++++++ packages/dart/2.12.1/run | 4 ++++ packages/dart/2.12.1/test.dart | 3 +++ 5 files changed, 28 insertions(+) create mode 100755 packages/dart/2.12.1/build.sh create mode 100644 packages/dart/2.12.1/environment create mode 100644 packages/dart/2.12.1/metadata.json create mode 100644 packages/dart/2.12.1/run create mode 100644 packages/dart/2.12.1/test.dart diff --git a/packages/dart/2.12.1/build.sh b/packages/dart/2.12.1/build.sh new file mode 100755 index 0000000..e01d7ce --- /dev/null +++ b/packages/dart/2.12.1/build.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +curl -L "https://storage.googleapis.com/dart-archive/channels/stable/release/2.12.1/sdk/dartsdk-linux-x64-release.zip" -o dart.zip + +unzip dart.zip +rm dart.zip + +cp -r dart-sdk/* . +rm -rf dart-sdk + +chmod -R +rx bin \ No newline at end of file diff --git a/packages/dart/2.12.1/environment b/packages/dart/2.12.1/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/dart/2.12.1/environment @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put 'export' statements here for environment variables +export PATH=$PWD/bin:$PATH diff --git a/packages/dart/2.12.1/metadata.json b/packages/dart/2.12.1/metadata.json new file mode 100644 index 0000000..388121e --- /dev/null +++ b/packages/dart/2.12.1/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "dart", + "version": "2.12.1", + "aliases": [], + "author": "Thomas Hobson " +} diff --git a/packages/dart/2.12.1/run b/packages/dart/2.12.1/run new file mode 100644 index 0000000..dfdbd40 --- /dev/null +++ b/packages/dart/2.12.1/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +dart run $* diff --git a/packages/dart/2.12.1/test.dart b/packages/dart/2.12.1/test.dart new file mode 100644 index 0000000..27e87b2 --- /dev/null +++ b/packages/dart/2.12.1/test.dart @@ -0,0 +1,3 @@ +void main() { + print('OK'); +} \ No newline at end of file