Update package version to 5.3.3
This commit is contained in:
@@ -5,4 +5,10 @@ URL="https://tiswww.case.edu/php/chet/bash/bashtop.html"
|
|||||||
# Get version number from tag name
|
# Get version number from tag name
|
||||||
VERSION=$(curl -s -L "$URL" | grep -A1 'The current version of bash is ' | grep -o -E '([0-9]\.[0-9]*)')
|
VERSION=$(curl -s -L "$URL" | grep -A1 'The current version of bash is ' | grep -o -E '([0-9]\.[0-9]*)')
|
||||||
|
|
||||||
|
# Get patch number
|
||||||
|
PATCH=$(curl -s --list-only ftp://ftp.gnu.org/gnu/bash/bash-${VERSION}-patches/ | grep -v '.sig' | wc -l)
|
||||||
|
|
||||||
|
# Append patch number to version
|
||||||
|
VERSION="${VERSION}.${PATCH}"
|
||||||
|
|
||||||
echo "$VERSION"
|
echo "$VERSION"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: bash
|
name: bash
|
||||||
description: The Bourne-Again Shell
|
description: The Bourne-Again Shell
|
||||||
version: 5.3
|
version: 5.3.3
|
||||||
url: https://www.gnu.org/software/bash/
|
url: https://www.gnu.org/software/bash/
|
||||||
license: GPL3-or-later
|
license: GPL3-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
|
|||||||
@@ -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 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
|
# 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/bash/bash-${BPM_PKG_VERSION}.tar.gz"
|
DOWNLOAD="https://ftp.gnu.org/gnu/bash/bash-${BPM_PKG_VERSION%.*}.tar.gz"
|
||||||
|
DOWNLOAD_PATCH_BASE="https://ftp.gnu.org/gnu/bash/bash-${BPM_PKG_VERSION%.*}-patches/bash$(echo ${BPM_PKG_VERSION%.*} | tr -d '.')"
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
FILENAME="${DOWNLOAD##*/}"
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# The prepare function is executed in the root of the temp directory
|
||||||
@@ -10,6 +11,13 @@ FILENAME="${DOWNLOAD##*/}"
|
|||||||
prepare() {
|
prepare() {
|
||||||
wget "$DOWNLOAD"
|
wget "$DOWNLOAD"
|
||||||
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
|
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"
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# The build function is executed in the source directory
|
# The build function is executed in the source directory
|
||||||
|
|||||||
Reference in New Issue
Block a user