From 8f2cb667b9fc02bb5b9ecbdb3dadf63a080b554e Mon Sep 17 00:00:00 2001 From: Florian Boor Date: Wed, 3 Jul 2019 01:13:17 +0200 Subject: [PATCH] dotsplash: package themes dynamically update to latest git and new repo --- recipes-bsp/dotsplash/dotsplash_git.bb | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/recipes-bsp/dotsplash/dotsplash_git.bb b/recipes-bsp/dotsplash/dotsplash_git.bb index 6bce9d6..faa9ea5 100644 --- a/recipes-bsp/dotsplash/dotsplash_git.bb +++ b/recipes-bsp/dotsplash/dotsplash_git.bb @@ -1,12 +1,12 @@ SUMMARY = "./dotsplash - a tiny and customizable splash screen" LICENSE = "GPLv2" PV = "1.0+git${SRCPV}" -SRCREV = "1555cb1a1c68c5c5536c3222ecd73783f7d9e74d" +SRCREV = "c34e58b2d0be3848c041c310232db6b1e4e4132b" LIC_FILES_CHKSUM = "file://COPYING;md5=39bba7d2cf0ba1036f2a6e2be52fe3f0" -SRC_URI = "git://git@gitlab.kernelconcepts.de:2224/danb/mucross_psplash.git;protocol=ssh \ +SRC_URI = "git://git@gitlab.kernelconcepts.de:2224/danb/dotsplash.git;protocol=ssh \ file://dotsplash-default \ file://dotsplash-init \ file://splashfuncs" @@ -18,9 +18,6 @@ S = "${WORKDIR}/git" FILES_${PN} += "/mnt/.psplash/" -PACKAGES =+ "${PN}-themes" -FILES_${PN}-themes += "${datadir}/dotsplash/themes/*" - do_install_append() { install -d ${D}/mnt/.psplash/ install -d ${D}${sysconfdir}/init.d/ @@ -35,4 +32,14 @@ do_install_append() { INITSCRIPT_NAME = "dotsplash.sh" INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ." -RRECOMMENDS_${PN} = "${PN}-themes" +RRECOMMENDS_${PN} = "${PN}-theme-mucross" + +python populate_packages_prepend () { + themedir = d.expand('${datadir}/dotsplash/themes') + do_split_packages(d, themedir, '^(.*)$', + 'dotsplash-theme-%s', './dotsplash theme %s', + extra_depends='', allow_dirs=True, prepend=True) +} + +PACKAGES_DYNAMIC += "^dotsplash-theme-.*" + \ No newline at end of file -- 2.39.5