From 69679da5e362cdf97888361af7f54d422f6f7cb7 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 28 Nov 2025 13:22:43 +0200 Subject: [PATCH] Update package version to 5.3.8 --- pkg.info | 41 +++++++++++++++++++++++++++++++++++------ source.sh | 22 ++++++---------------- 2 files changed, 41 insertions(+), 22 deletions(-) diff --git a/pkg.info b/pkg.info index 989bef4..209aae6 100644 --- a/pkg.info +++ b/pkg.info @@ -1,12 +1,41 @@ name: bash description: The Bourne-Again Shell -version: 5.3.3 -revision: 2 +version: 5.3.8 +revision: 1 url: https://www.gnu.org/software/bash/ license: GPL3-or-later architecture: any -keep: ["etc/bashrc","etc/profile","etc/skel/.bash_profile","etc/skel/.bashrc"] -depends: ["glibc","readline"] -optional_depends: ["bash-completion"] -provides: ["sh"] type: source +keep: + - etc/bashrc + - etc/profile + - etc/skel/.bash_profile + - etc/skel/.bashrc +depends: + - glibc + - readline +optional_depends: + - bash-completion +provides: + - sh +downloads: + - url: https://ftpmirror.gnu.org/gnu/bash/bash-${BPM_PKG_VERSION%.*}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 0d5cd86965f869a26cf64f4b71be7b96f90a3ba8b3d74e27e8e9d9d5550f31ba + - url: https://ftpmirror.gnu.org/gnu/bash/bash-5.3-patches/bash53-001 + checksum: 1f608434364af86b9b45c8b0ea3fb3b165fb830d27697e6cdfc7ac17dee3287f + - url: https://ftpmirror.gnu.org/gnu/bash/bash-5.3-patches/bash53-002 + checksum: e385548a00130765ec7938a56fbdca52447ab41fabc95a25f19ade527e282001 + - url: https://ftpmirror.gnu.org/gnu/bash/bash-5.3-patches/bash53-003 + checksum: f245d9c7dc3f5a20d84b53d249334747940936f09dc97e1dcb89fc3ab37d60ed + - url: https://ftpmirror.gnu.org/gnu/bash/bash-5.3-patches/bash53-004 + checksum: 9591d245045529f32f0812f94180b9d9ce9023f5a765c039b852e5dfc99747d0 + - url: https://ftpmirror.gnu.org/gnu/bash/bash-5.3-patches/bash53-005 + checksum: cca1ef52dbbf433bc98e33269b64b2c814028efe2538be1e2c9a377da90bc99d + - url: https://ftpmirror.gnu.org/gnu/bash/bash-5.3-patches/bash53-006 + checksum: 29119addefed8eff91ae37fd51822c31780ee30d4a28376e96002706c995ff10 + - url: https://ftpmirror.gnu.org/gnu/bash/bash-5.3-patches/bash53-007 + checksum: c0976bbfffa1453c7cfdd62058f206a318568ff2d690f5d4fa048793fa3eb299 + - url: https://ftpmirror.gnu.org/gnu/bash/bash-5.3-patches/bash53-008 + checksum: 097cd723cbfb8907674ac32214063a3fd85282657ec5b4e544d2c0f719653fb4 diff --git a/source.sh b/source.sh index 637912a..7f2c737 100644 --- a/source.sh +++ b/source.sh @@ -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 }