void-packages/srcpkgs/jetbrains-jdk-bin/update

7 lines
391 B
Text
Raw Normal View History

# NOTE: This does not check the jdk_ver part of the version (eg 11.0.4)
# If it changes, this update check will not detect it, it will only detect the build number change.
# It will be up to the maintainer to go hunt down the correct jdk version and update the template.
_jdk_build=${version#*b}
version=b${_jdk_build}
pattern="jbrsdk-\d+_\d+_\d+-(?:linux-x64-)\Kb\d+\.\d+(?=\.tar\.gz</a>)"