mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
112 lines
3.2 KiB
Bash
112 lines
3.2 KiB
Bash
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-2020 Free Software Foundation, Inc."
|
|
LICENSE="GNU GPL v3"
|
|
REVISION="1"
|
|
SOURCE_URI="https://ftpmirror.gnu.org/bash/bash-5.2.tar.gz"
|
|
for i in {001..015}; do
|
|
eval "SOURCE_URI_$i=\"https://ftpmirror.gnu.org/bash/bash-5.2-patches/bash52-$i#noarchive\""
|
|
done
|
|
CHECKSUM_SHA256="a139c166df7ff4471c5e0733051642ee5556c1cc8a4a78f145583c5c81ab32fb"
|
|
CHECKSUM_SHA256_001="f42f2fee923bc2209f406a1892772121c467f44533bedfe00a176139da5d310a"
|
|
CHECKSUM_SHA256_002="45cc5e1b876550eee96f95bffb36c41b6cb7c07d33f671db5634405cd00fd7b8"
|
|
CHECKSUM_SHA256_003="6a090cdbd334306fceacd0e4a1b9e0b0678efdbbdedbd1f5842035990c8abaff"
|
|
CHECKSUM_SHA256_004="38827724bba908cf5721bd8d4e595d80f02c05c35f3dd7dbc4cd3c5678a42512"
|
|
CHECKSUM_SHA256_005="ece0eb544368b3b4359fb8464caa9d89c7a6743c8ed070be1c7d599c3675d357"
|
|
CHECKSUM_SHA256_006="d1e0566a257d149a0d99d450ce2885123f9995e9c01d0a5ef6df7044a72a468c"
|
|
CHECKSUM_SHA256_007="2500a3fc21cb08133f06648a017cebfa27f30ea19c8cbe8dfefdf16227cfd490"
|
|
CHECKSUM_SHA256_008="6b4bd92fd0099d1bab436b941875e99e0cb3c320997587182d6267af1844b1e8"
|
|
CHECKSUM_SHA256_009="f95a817882eaeb0cb78bce82859a86bbb297a308ced730ebe449cd504211d3cd"
|
|
CHECKSUM_SHA256_010="c7705e029f752507310ecd7270aef437e8043a9959e4d0c6065a82517996c1cd"
|
|
CHECKSUM_SHA256_011="831b5f25bf3e88625f3ab315043be7498907c551f86041fa3b914123d79eb6f4"
|
|
CHECKSUM_SHA256_012="2fb107ce1fb8e93f36997c8b0b2743fc1ca98a454c7cc5a3fcabec533f67d42c"
|
|
CHECKSUM_SHA256_013="094b4fd81bc488a26febba5d799689b64d52a5505b63e8ee854f48d356bc7ce6"
|
|
CHECKSUM_SHA256_014="3ef9246f2906ef1e487a0a3f4c647ae1c289cbd8459caa7db5ce118ef136e624"
|
|
CHECKSUM_SHA256_015="ef73905169db67399a728e238a9413e0d689462cb9b72ab17a05dba51221358a"
|
|
|
|
SOURCE_DIR="bash-5.2"
|
|
PATCHES="
|
|
bash-kill_by_name.patch
|
|
bash-5.0.patchset
|
|
"
|
|
|
|
ARCHITECTURES="all"
|
|
|
|
PROVIDES="
|
|
bash = $portVersion
|
|
cmd:bash = $portVersion
|
|
cmd:bashbug = $portVersion
|
|
cmd:sh
|
|
"
|
|
REQUIRES="
|
|
haiku
|
|
lib:libhistory
|
|
lib:libreadline
|
|
lib:libncursesw
|
|
lib:libintl
|
|
lib:libiconv
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku_devel
|
|
devel:libhistory >= 8
|
|
devel:libreadline >= 8
|
|
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()
|
|
{
|
|
cd $sourceDir
|
|
for i in {001..015}; do
|
|
echo "Applying patch $i..."
|
|
eval f=\$sourceDir$i/bash52-$i
|
|
sed -e "s|\.\./bash-5.1/||" "$f" | patch -p0
|
|
done
|
|
|
|
# store bash settings under ~/config/settings
|
|
find -type f -name "*.c" -o -name "*.def" -o -name "*.h" -o -name "*.1" \
|
|
| xargs sed -i -e 's,~/\.,~/config/settings/,g'
|
|
}
|
|
|
|
BUILD()
|
|
{
|
|
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
|
|
}
|