From 680922641d768363be7920728a4bcfab2893a32c Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 4 Mar 2015 03:33:57 +0200 Subject: [PATCH] wesnoth: use trim_version() to get directory on server Signed-off-by: Marko Lindqvist --- recipes-games/wesnoth/wesnoth_1.10.7.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/recipes-games/wesnoth/wesnoth_1.10.7.bb b/recipes-games/wesnoth/wesnoth_1.10.7.bb index f5c0bf6..40b9bac 100644 --- a/recipes-games/wesnoth/wesnoth_1.10.7.bb +++ b/recipes-games/wesnoth/wesnoth_1.10.7.bb @@ -6,7 +6,9 @@ LIC_FILES_CHKSUM = "file://copyright;md5=3cd35059318048afea9baa2fb45e339b" DEPENDS = "asio freetype libsdl-image libsdl-mixer libsdl-net libsdl-ttf zlib boost pango libpng" -SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${PN}-1.10/${P}/${P}.tar.bz2" +SHRT_VER = "${@oe.utils.trim_version("${PV}", 2)}" + +SRC_URI = "${SOURCEFORGE_MIRROR}/${PN}/${PN}-${SHRT_VER}/${P}/${P}.tar.bz2" ARM_INSTRUCTION_SET = "arm"