diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..7d10878 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +URL="https://www.ruby-lang.org/en/downloads/" + +# Get version number from tag name +VERSION=$(curl -s -L "$URL" | grep -A1 'The current stable version is ' | grep -o -E '[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info index 2038128..bceaee9 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,9 @@ name: ruby description: A dynamic, open source programming language with a focus on simplicity and productivity -version: 3.4.2 -revision: 2 +version: 3.4.6 url: https://www.ruby-lang.org/en/ license: BSD-2-Clause architecture: any depends: ["gcc-libs", "gdbm", "glibc", "gmp", "libffi", "libxcrypt", "libyaml", "openssl", "readline", "valgrind", "zlib"] -make_depends: ["rustc", "procps-ng"] +make_depends: ["doxygen","graphviz","rustc", "procps-ng"] type: source diff --git a/source.sh b/source.sh index d1b1394..68a29c5 100644 --- a/source.sh +++ b/source.sh @@ -27,6 +27,8 @@ build() { # The check function is executed in the source directory # This function is used to run tests to verify the package has been compiled correctly check() { + # One test fails without resetting the HOME env variable + export HOME=$(getent passwd "$USER" | cut -d':' -f6) make check }