From 0d1906e1b603fc9ad0831f102290b24cbcf0703a Mon Sep 17 00:00:00 2001 From: "Vargas, Dan" Date: Thu, 18 Mar 2021 15:34:25 -0500 Subject: [PATCH] pkg(swift-5.3.3): Add swift 5.3.3 --- packages/swift/5.3.3/build.sh | 6 ++++++ packages/swift/5.3.3/environment | 4 ++++ packages/swift/5.3.3/metadata.json | 6 ++++++ packages/swift/5.3.3/run | 4 ++++ packages/swift/5.3.3/test.swift | 1 + 5 files changed, 21 insertions(+) create mode 100755 packages/swift/5.3.3/build.sh create mode 100644 packages/swift/5.3.3/environment create mode 100644 packages/swift/5.3.3/metadata.json create mode 100644 packages/swift/5.3.3/run create mode 100644 packages/swift/5.3.3/test.swift diff --git a/packages/swift/5.3.3/build.sh b/packages/swift/5.3.3/build.sh new file mode 100755 index 0000000..5070b12 --- /dev/null +++ b/packages/swift/5.3.3/build.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +# Binary install +curl -L "https://swift.org/builds/swift-5.3.3-release/ubuntu1804/swift-5.3.3-RELEASE/swift-5.3.3-RELEASE-ubuntu18.04.tar.gz" -o swift.tar.gz +tar xzf swift.tar.gz --strip-components=2 +rm swift.tar.gz diff --git a/packages/swift/5.3.3/environment b/packages/swift/5.3.3/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/swift/5.3.3/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/swift/5.3.3/metadata.json b/packages/swift/5.3.3/metadata.json new file mode 100644 index 0000000..679b8da --- /dev/null +++ b/packages/swift/5.3.3/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "swift", + "version": "5.3.3", + "aliases": ["swift"], + "author": "Dan Vargas " +} diff --git a/packages/swift/5.3.3/run b/packages/swift/5.3.3/run new file mode 100644 index 0000000..5d29e87 --- /dev/null +++ b/packages/swift/5.3.3/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Setting clang cache to current dir to avoid permission error on /tmp +swift -module-cache-path . "$@" diff --git a/packages/swift/5.3.3/test.swift b/packages/swift/5.3.3/test.swift new file mode 100644 index 0000000..3f2688f --- /dev/null +++ b/packages/swift/5.3.3/test.swift @@ -0,0 +1 @@ +print("OK") \ No newline at end of file