php: add UPSTREAM_CHECK_URI

Add UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX to check the correct
latest stable verison.

Before the patch:
$ devtool latest-version php
INFO: Current version: 8.4.14
INFO: Latest version:

After the patch:
$ devtool latest-version php
INFO: Current version: 8.4.14
INFO: Latest version: 8.4.14

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Yi Zhao 2025-11-12 21:44:01 +08:00 committed by Khem Raj
parent a582f6250f
commit a07d522d70
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -27,6 +27,9 @@ SRC_URI:append:class-target = " \
file://php-fpm.service \
"
UPSTREAM_CHECK_URI = "https://github.com/php/php-src/releases"
UPSTREAM_CHECK_REGEX = "releases/tag/php-(?P<pver>\d+(\.\d+)+)"
S = "${UNPACKDIR}/php-${PV}"
SRC_URI[sha256sum] = "f2139ce4cb7a6c5643ee98caa34e5c32ba841c2ba293e34a3d0357faa84bb3e7"