Update package version to 8.3.1

This commit is contained in:
2025-07-25 14:44:27 +03:00
parent 942eaf1a63
commit 175353073d
4 changed files with 25 additions and 38 deletions
+10 -3
View File
@@ -2,7 +2,8 @@
# 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://ftp.gnu.org/gnu/readline/readline-${BPM_PKG_VERSION}.tar.gz"
DOWNLOAD="https://ftp.gnu.org/gnu/readline/readline-${BPM_PKG_VERSION%.*}.tar.gz"
DOWNLOAD_PATCH_BASE="https://ftp.gnu.org/gnu/readline/readline-${BPM_PKG_VERSION%.*}-patches/readline$(echo ${BPM_PKG_VERSION%.*} | tr -d '.')"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
@@ -11,10 +12,16 @@ prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
# Apply patches
# Download and apply official 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"
done
# Apply local patches
patch -Np2 < "$BPM_WORKDIR"/8.3.0-display-null-prompt.patch
patch -Np2 < "$BPM_WORKDIR"/8.3.0-event-hook.patch
autoconf -fiv
}