diff --git a/packages/gawk/5.1.0/build.sh b/packages/gawk/5.1.0/build.sh new file mode 100644 index 0000000..25a5566 --- /dev/null +++ b/packages/gawk/5.1.0/build.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +# Put instructions to build your package in here +PREFIX=$(realpath $(dirname $0)) + +mkdir -p build + +cd build + +curl "https://ftp.gnu.org/gnu/gawk/gawk-5.1.0.tar.gz" -o gawk.tar.gz + +tar xzf gawk.tar.gz --strip-components=1 + +# === autoconf based === +./configure --prefix "$PREFIX" + +make -j$(nproc) +make install -j$(nproc) +cd ../ +rm -rf build diff --git a/packages/gawk/5.1.0/compile b/packages/gawk/5.1.0/compile new file mode 100644 index 0000000..e37a74c --- /dev/null +++ b/packages/gawk/5.1.0/compile @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +# Put instructions to compile source code, remove this file if the language does not require this stage diff --git a/packages/gawk/5.1.0/environment b/packages/gawk/5.1.0/environment new file mode 100644 index 0000000..780b668 --- /dev/null +++ b/packages/gawk/5.1.0/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/gawk/5.1.0/metadata.json b/packages/gawk/5.1.0/metadata.json new file mode 100644 index 0000000..a4f3ae2 --- /dev/null +++ b/packages/gawk/5.1.0/metadata.json @@ -0,0 +1,6 @@ +{ + "language": "gawk", + "version": "5.1.0", + "aliases": ["awk"], + "author": "Thomas Hobson " +} diff --git a/packages/gawk/5.1.0/run b/packages/gawk/5.1.0/run new file mode 100644 index 0000000..567b400 --- /dev/null +++ b/packages/gawk/5.1.0/run @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +# Put instructions to run the runtime +gawk-5.1.0 -f $* diff --git a/packages/gawk/5.1.0/test.awk b/packages/gawk/5.1.0/test.awk new file mode 100644 index 0000000..25e1bd3 --- /dev/null +++ b/packages/gawk/5.1.0/test.awk @@ -0,0 +1 @@ +{print "OK"} \ No newline at end of file