pkg(bash-5.1.0): Add bash 5.1.0

This commit is contained in:
Thomas Hobson 2021-03-13 20:43:04 +13:00
parent 92aa283c8f
commit 5819b75315
No known key found for this signature in database
GPG Key ID: 9F1FD9D87950DB6F
5 changed files with 35 additions and 0 deletions

20
packages/bash/5.1.0/build.sh vendored Executable 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/bash/bash-5.1.tar.gz" -o bash.tar.gz
tar xzf bash.tar.gz --strip-components=1
# === autoconf based ===
./configure --prefix "$PREFIX"
make -j$(nproc)
make install -j$(nproc)
cd ../
rm -rf build

4
packages/bash/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/bash/5.1.0/metadata.json vendored Normal file
View File

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

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

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

1
packages/bash/5.1.0/test.bash vendored Normal file
View File

@ -0,0 +1 @@
echo "OK"