upower: use archive file in SRC_URI and fix UPSTREAM_CHECK_URI

upower releases are available as tar.bz2 archives let's use them
instead off cloning the whole repo.

Also, fix the UPSTREAM_CHECK regex that changed after revision
0.99.13. The format went from:

    UPOWER_0_99_13

to

    v0.99.14

Signed-off-by: Marc Ferland <marc.ferland@sonatest.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Marc Ferland 2024-12-12 14:40:44 -05:00 committed by Khem Raj
parent 47e1b2e89f
commit 7171442d10
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -11,11 +11,12 @@ DEPENDS = " \
dbus-glib \
"
SRC_URI = "git://gitlab.freedesktop.org/upower/upower.git;protocol=https;branch=master"
SRCREV = "c889154ec8e3e2239db9260d48b2e198d72ba002"
S = "${WORKDIR}/git"
SRC_URI = "https://gitlab.freedesktop.org/${BPN}/${BPN}/-/archive/v${PV}/${BPN}-v${PV}.tar.bz2"
SRC_URI[sha256sum] = "de7177deb2ee23d9c505046c74a856564acab8fd1d39aa1541d123af5a99ca8d"
S = "${WORKDIR}/${BPN}-v${PV}"
UPSTREAM_CHECK_GITTAGREGEX = "UPOWER_(?P<pver>\d+(\_\d+)+)"
UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/${BPN}/${BPN}/-/tags"
UPSTREAM_CHECK_REGEX = "v(?P<pver>\d+(\.\d+)+)"
GIR_MESON_ENABLE_FLAG = "enabled"
GIR_MESON_DISABLE_FLAG = "disabled"