diff --git a/check-version.sh b/check-version.sh index 881de0e..9be7513 100644 --- a/check-version.sh +++ b/check-version.sh @@ -4,9 +4,9 @@ REPO="https://git.ffmpeg.org/ffmpeg.git" # Get tag name using 'git ls-remote' -TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep -E "^n([0-9]*\.[0-9]*\.[0-9]*)\$" | sort -r | head -n1) +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep -E "^n[0-9]{1,}\.[0-9]{1,}(\.[0-9]{1,})?$" | sort -V | tail -n1) -# Trim 'v' character in VERSION variable +# Trim 'v' character in TAG_NAME variable VERSION=$(echo "$TAG_NAME" | tr -d 'n') echo "$VERSION" diff --git a/pkg.info b/pkg.info index b734eb5..9d599d2 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,6 @@ name: ffmpeg description: A complete, cross-platform solution to record, convert and stream audio and video -version: 7.1.1 -revision: 4 +version: 8.0 url: https://ffmpeg.org/ license: GPL3-only architecture: any