SUMMARY="The GNU Bourne Again Shell" DESCRIPTION="Bash is an sh-compatible command language interpreter that \ executes commands read from the standard input or from a file. Bash also \ incorporates useful features from the Korn and C shells (ksh and csh)." HOMEPAGE="https://www.gnu.org/software/bash/" COPYRIGHT="1987-2017 Free Software Foundation, Inc." LICENSE="GNU GPL v3" REVISION="3" SOURCE_URI="https://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz" CHECKSUM_SHA256="d86b3392c1202e8ff5a423b302e6284db7f8f435ea9f39b5b1b20fd3ac36dfcb" for i in {001..012}; do eval "SOURCE_URI_$i=\"https://ftp.gnu.org/gnu/bash/bash-4.4-patches/bash44-$i#noarchive\"" done CHECKSUM_SHA256_001="3e28d91531752df9a8cb167ad07cc542abaf944de9353fe8c6a535c9f1f17f0f" CHECKSUM_SHA256_002="7020a0183e17a7233e665b979c78c184ea369cfaf3e8b4b11f5547ecb7c13c53" CHECKSUM_SHA256_003="51df5a9192fdefe0ddca4bdf290932f74be03ffd0503a3d112e4199905e718b2" CHECKSUM_SHA256_004="ad080a30a4ac6c1273373617f29628cc320a35c8cd06913894794293dc52c8b3" CHECKSUM_SHA256_005="221e4b725b770ad0bb6924df3f8d04f89eeca4558f6e4c777dfa93e967090529" CHECKSUM_SHA256_006="6a8e2e2a6180d0f1ce39dcd651622fb6d2fd05db7c459f64ae42d667f1e344b8" CHECKSUM_SHA256_007="de1ccc07b7bfc9e25243ad854f3bbb5d3ebf9155b0477df16aaf00a7b0d5edaf" CHECKSUM_SHA256_008="86144700465933636d7b945e89b77df95d3620034725be161ca0ca5a42e239ba" CHECKSUM_SHA256_009="0b6bdd1a18a0d20e330cc3bc71e048864e4a13652e29dc0ebf3918bea729343c" CHECKSUM_SHA256_010="8465c6f2c56afe559402265b39d9e94368954930f9aa7f3dfa6d36dd66868e06" CHECKSUM_SHA256_011="dd56426ef7d7295e1107c0b3d06c192eb9298f4023c202ca2ba6266c613d170d" CHECKSUM_SHA256_012="fac271d2bf6372c9903e3b353cb9eda044d7fe36b5aab52f21f3f21cd6a2063e" SOURCE_DIR="bash-4.4" PATCHES=" bash-kill_by_name.patch bash-4.4.patchset " ARCHITECTURES="x86_gcc2 x86 x86_64" PROVIDES=" bash = $portVersion cmd:bash = $portVersion cmd:bashbug = $portVersion cmd:sh " REQUIRES=" haiku lib:libhistory lib:libreadline >= 7 lib:libncursesw lib:libintl lib:libiconv " BUILD_REQUIRES=" haiku_devel devel:libhistory devel:libreadline >= 7 devel:libncursesw devel:libintl " BUILD_PREREQUIRES=" cmd:autoconf cmd:awk cmd:bison cmd:cmp cmd:gcc cmd:make cmd:patch cmd:sed " GLOBAL_WRITABLE_FILES="settings/bashrc keep-old" PATCH() { for i in {001..012}; do echo "Applying patch $i..." sed -e "s/\.\.\/bash-4.4\///" ../../sources-$i/bash44-$i | patch -p0 done # store bash settings under ~/config/settings find -type f | xargs sed -i -e 's,~/\.,~/config/settings/,g' } BUILD() { CPPFLAGS="-DUSE_MKTEMP=1 -DUSE_MKSTEMP=1" runConfigure ./configure \ --without-bash-malloc --with-installed-readline make $jobArgs } INSTALL() { make install-strip ln -s bash $binDir/sh # Use bash-completion, if available cat <<'EOF' > $settingsDir/bashrc #!/bin/bash [[ $PS1 && -f /system/data/bash-completion/bash_completion ]] && \ . /system/data/bash-completion/bash_completion EOF } TEST() { make check }