diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..c5b1380 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +URL="https://tiswww.case.edu/php/chet/bash/bashtop.html" + +# 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]*)') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 95d02bb..d80cd55 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: bash description: The Bourne-Again Shell -version: 5.2.37 -revision: 4 +version: 5.3 url: https://www.gnu.org/software/bash/ license: GPL3-or-later architecture: any diff --git a/source.sh b/source.sh index bf2f2c6..63ab30e 100644 --- a/source.sh +++ b/source.sh @@ -15,6 +15,7 @@ prepare() { # The build function is executed in the source directory # This function is used to compile the source code build() { + export CFLAGS="${CLFAGS} -std=gnu17" ./configure --prefix=/usr \ --without-bash-malloc \ --with-installed-readline \