Update package version to 5.3.8

This commit is contained in:
2025-11-28 13:22:43 +02:00
parent b2ac8f6f4d
commit 69679da5e3
2 changed files with 41 additions and 22 deletions
+6 -16
View File
@@ -2,21 +2,11 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://ftpmirror.gnu.org/gnu/bash/bash-${BPM_PKG_VERSION%.*}.tar.gz"
DOWNLOAD_PATCH_BASE="https://ftpmirror.gnu.org/gnu/bash/bash-${BPM_PKG_VERSION%.*}-patches/bash$(echo ${BPM_PKG_VERSION%.*} | tr -d '.')"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
# Download and apply patches
cd "$BPM_SOURCE"
for patch in $(seq "${BPM_PKG_VERSION##*.}"); do
wget -O "${patch}.patch" "${DOWNLOAD_PATCH_BASE}-$(printf '%03d' ${patch})"
patch -Np0 -i "${patch}.patch"
# Apply official patches
for _patch in "$BPM_WORKDIR"/bash53-*; do
patch -Np0 -i "$_patch"
done
}
@@ -25,9 +15,9 @@ prepare() {
build() {
export CFLAGS="${CLFAGS} -std=gnu17"
./configure --prefix=/usr \
--without-bash-malloc \
--with-installed-readline \
--docdir=/usr/share/doc/bash
--without-bash-malloc \
--with-installed-readline \
--docdir=/usr/share/doc/bash
make
}