pkg(gawk-5.1.0): Add gawk

This commit is contained in:
Thomas Hobson 2021-03-13 20:37:11 +13:00
parent c3617c55a8
commit 92aa283c8f
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
6 changed files with 38 additions and 0 deletions

20
packages/gawk/5.1.0/build.sh vendored Normal file
View File

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

3
packages/gawk/5.1.0/compile vendored Normal file
View File

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

4
packages/gawk/5.1.0/environment vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put 'export' statements here for environment variables
export PATH=$PWD/bin:$PATH

6
packages/gawk/5.1.0/metadata.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"language": "gawk",
"version": "5.1.0",
"aliases": ["awk"],
"author": "Thomas Hobson <git@hexf.me>"
}

4
packages/gawk/5.1.0/run vendored Normal file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
# Put instructions to run the runtime
gawk-5.1.0 -f $*

1
packages/gawk/5.1.0/test.awk vendored Normal file
View File

@ -0,0 +1 @@
{print "OK"}