summaryrefslogtreecommitdiff
path: root/meta-unit-graphics/recipes-core/plymouth-themes
diff options
context:
space:
mode:
Diffstat (limited to 'meta-unit-graphics/recipes-core/plymouth-themes')
-rw-r--r--meta-unit-graphics/recipes-core/plymouth-themes/plymouth-themes_git.bb37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta-unit-graphics/recipes-core/plymouth-themes/plymouth-themes_git.bb b/meta-unit-graphics/recipes-core/plymouth-themes/plymouth-themes_git.bb
new file mode 100644
index 0000000..cbf3d83
--- /dev/null
+++ b/meta-unit-graphics/recipes-core/plymouth-themes/plymouth-themes_git.bb
@@ -0,0 +1,37 @@
+SUMMARY = "Plymouth theme collection"
+DESCRIPTION = "A huge collection (80+) of plymouth themes ported from android bootanimations"
+LICENSE = "GPL-3.0-only"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
+
+SRC_URI = "\
+ git://github.com/adi1090x/plymouth-themes;branch=master;protocol=https \
+"
+
+SRCREV = "5d8817458d764bff4ff9daae94cf1bbaabf16ede"
+
+PV = "1.0"
+
+RDEPENDS:${PN}:append = " plymouth"
+
+S = "${UNPACKDIR}/${PN}-${PV}"
+
+PLYMOUTH_THEMES ??= "pack_1/circuit pack_2/darth_vader pack_3/pixels pack_4/spin"
+
+do_install() {
+ install -d ${D}${datadir}/plymouth/themes/pixels
+
+ for theme_path in ${PLYMOUTH_THEMES}; do
+ # Drop pack from the path
+ theme_name=$(basename ${theme_path})
+
+ # Create theme destination directory
+ install -d ${D}${datadir}/plymouth/themes/${theme_name}
+
+ # Copy theme files
+ cp -r ${S}/${theme_path}/* ${D}${datadir}/plymouth/themes/${theme_name}/
+ done
+}
+
+FILES:${PN} = "\
+ ${datadir}/plymouth/themes/* \
+"