Update package version to 8.3.3

This commit is contained in:
2025-12-12 14:00:43 +02:00
parent 1e747684f1
commit 7ccd25fafe
4 changed files with 64 additions and 34 deletions
+9 -16
View File
@@ -2,27 +2,17 @@
# 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/readline/readline-${BPM_PKG_VERSION%.*}.tar.gz"
DOWNLOAD_PATCH_BASE="https://ftpmirror.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
# This function is used for downloading files and putting them into the correct location
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
# 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"
# Apply official patches
for _patch in "$BPM_WORKDIR"/readline83-*; do
patch -Np0 -i "$_patch"
done
# Apply local patches
patch -Np2 < "$BPM_WORKDIR"/8.3.0-display-null-prompt.patch
autoconf -fiv
# remove RPATH from shared objects
sed -i 's|-Wl,-rpath,$(libdir) ||g' support/shobj-conf
}
# The build function is executed in the source directory
@@ -46,6 +36,9 @@ check() {
package() {
make SHLIB_LIBS="-lncursesw" DESTDIR="$BPM_OUTPUT" install
# Install inputrc file from arch linux
install -Dm644 "$BPM_WORKDIR"/inputrc "$BPM_OUTPUT"/etc/inputrc
# Install documentation
install -d "$BPM_OUTPUT"/usr/share/doc/readline
install -m644 doc/*.{ps,pdf,html,dvi} "$BPM_OUTPUT"/usr/share/doc/