summaryrefslogtreecommitdiff
path: root/Ports/bash/package.sh
diff options
context:
space:
mode:
authorLarkin <45925460+larb0b@users.noreply.github.com>2019-09-24 02:56:39 -0400
committerAndreas Kling <awesomekling@gmail.com>2019-09-24 08:56:39 +0200
commit18249b599634be4162b4ddbb32f002c75ee07060 (patch)
treedd7c700f0f0833ffffc782995da3108d82c43a3e /Ports/bash/package.sh
parentd5f1c57fe2cc7cf863b4c99b4d11460f3b547c2c (diff)
downloadserenity-18249b599634be4162b4ddbb32f002c75ee07060.zip
Ports: Switch to new ports system (#594)
Much redundancy is removed from package scripts with this system. It also supports simple dependency management, uninstalling (through BSD ports style plist files), cleaning up after itself (with clean, clean_dist, clean_all commands), etc.
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
+}