SUMMARY = "./dotsplash - a tiny and customizable splash screen"
LICENSE = "GPLv2"
PV = "1.0+git${SRCPV}"
-SRCREV = "eac58fd508efaa3215094085daa06a58d6d7a75c"
+SRCREV = "ff34b85bfed5401910b2bc28a150a347f26ce97f"
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"
inherit pkgconfig update-rc.d meson
+PACKAGE_ARCH = "${MACHINE_ARCH}"
-S = "${WORKDIR}/git"
+DOTSPLASH_THEME ?= "kc-800"
+DOTSPLASH_THEME_lamobo-r1 ?= "kc-fullhd"
+DOTSPLASH_THEME_topasa900 ?= "kc-320"
+
+DOTSPLASH_PARAMS ?= "-s 15 --theme ${DOTSPLASH_THEME}"
-FILES_${PN} += "/mnt/.dotsplash/"
+S = "${WORKDIR}/git"
-PACKAGES =+ "${PN}-themes"
-FILES_${PN}-themes += "${datadir}/dotsplash/themes/*"
+FILES_${PN} += "/mnt/.psplash/"
do_install_append() {
- install -d ${D}/mnt/.dotsplash/
+ install -d ${D}/mnt/.psplash/
install -d ${D}${sysconfdir}/init.d/
install -m 0755 ${WORKDIR}/dotsplash-init ${D}${sysconfdir}/init.d/dotsplash.sh
install -d ${D}${sysconfdir}/default/
+ sed -i 's/@PARAMS@/${DOTSPLASH_PARAMS}/g' ${WORKDIR}/dotsplash-default
install -m 0644 ${WORKDIR}/dotsplash-default ${D}${sysconfdir}/default/dotsplash
install -m 0755 ${WORKDIR}/splashfuncs ${D}${sysconfdir}/default/splashfuncs
+ cd ${D}/${bindir}
+ ln -s dotsplash-write psplash-write
}
INITSCRIPT_NAME = "dotsplash.sh"
INITSCRIPT_PARAMS = "start 0 S . stop 20 0 1 6 ."
+
+RRECOMMENDS_${PN} = "${PN}-theme-${DOTSPLASH_THEME}"
+
+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