diff mbox series

[meta-oe,1/3] upower: use archive file in SRC_URI and fix UPSTREAM_CHECK_URI

Message ID 20241212194046.874645-1-marc.ferland@sonatest.com
State Accepted
Headers show
Series [meta-oe,1/3] upower: use archive file in SRC_URI and fix UPSTREAM_CHECK_URI | expand

Commit Message

Marc Ferland Dec. 12, 2024, 7:40 p.m. UTC
From: Marc Ferland <marc.ferland@sonatest.com>

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>
---
 meta-oe/recipes-support/upower/upower_0.99.17.bb | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/upower/upower_0.99.17.bb b/meta-oe/recipes-support/upower/upower_0.99.17.bb
index 0572cc801..5e2f04f31 100644
--- a/meta-oe/recipes-support/upower/upower_0.99.17.bb
+++ b/meta-oe/recipes-support/upower/upower_0.99.17.bb
@@ -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"