summaryrefslogtreecommitdiff
path: root/Ports/bash/package.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Ports/bash/package.sh')
-rwxr-xr-xPorts/bash/package.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/Ports/bash/package.sh b/Ports/bash/package.sh
new file mode 100755
index 0000000000..56daeb313f
--- /dev/null
+++ b/Ports/bash/package.sh
@@ -0,0 +1,12 @@
+#!/bin/bash ../.port_include.sh
+port=bash
+version=5.0
+useconfigure=true
+configopts="--disable-nls --without-bash-malloc"
+files="https://ftp.gnu.org/gnu/bash/bash-5.0.tar.gz bash-5.0.tar.gz"
+
+build() {
+ run_replace_in_file "s/define GETCWD_BROKEN 1/undef GETCWD_BROKEN/" config.h
+ run_replace_in_file "s/define CAN_REDEFINE_GETENV 1/undef CAN_REDEFINE_GETENV/" config.h
+ run make $makeopts
+}