xfce-panel-plugin.bbclass: correct SRC_URI with xfce_verdir

The SRC_URI is wrongly calculated in xfce-panel-plugin.bbclass when the
length of first 2 parts(separated by dot(.)) of PV is longer than 3 such
as 0.10. It should use function xfce_verdir() instead which is
introduced by xfce.bbclass.

Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Kai Kang 2019-11-08 18:22:35 +08:00 committed by Khem Raj
parent c12e9a7709
commit 53724ff23d

View File

@ -4,11 +4,11 @@ REQUIRED_DISTRO_FEATURES = "x11"
DEPENDS += "libxfce4ui libxfce4util xfce4-panel"
SRC_URI = "http://archive.xfce.org/src/panel-plugins/${BPN}/${@'${PV}'[0:3]}/${BPN}-${PV}.tar.bz2"
SRC_URI = "http://archive.xfce.org/src/panel-plugins/${BPN}/${@xfce_verdir("${PV}")}/${BPN}-${PV}.tar.bz2"
FILES_${PN} += "${datadir}/xfce4/panel-plugins/"
FILES_${PN} += "${datadir}/xfce4/panel/plugins/"
FILES_${PN} += "${libdir}/xfce4/panel-plugins/*.so"
FILES_${PN} += "${libdir}/xfce4/panel/plugins/*.so"
FILES_${PN}-dev += "${libdir}/xfce4/panel/plugins/*.la"
FILES_${PN}-dev += "${libdir}/xfce4/panel/plugins/*.la"