summaryrefslogtreecommitdiff
path: root/recipes/shr/shr-splash-theme.inc
blob: 9fb1fd23e733a7eeccb4f5f133563debd6faf355 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
RPROVIDES_${PN} = "virtual/shr-splash-theme"
PROVIDES  = "virtual/shr-splash-theme"
RDEPENDS_${PN} += "shr-splash"

inherit update-alternatives

FILES_${PN} = "${datadir}/shr-splash/themes/${PN}"

ALTERNATIVE_NAME = "shr-splash-theme"
ALTERNATIVE_LINK = "${datadir}/shr-splash/theme"
ALTERNATIVE_PATH = "${datadir}/shr-splash/themes/${PN}"
ALTERNATIVE_PRIORITY ?= 1

do_install() {
    install -d ${D}${datadir}/shr-splash/themes/${PN}

    install -m 0644 ${S}/xsplash-vga.ppm ${D}${datadir}/shr-splash/themes/${PN}/xsplash-vga.ppm
    install -m 0644 ${S}/boot.fbz ${D}${datadir}/shr-splash/themes/${PN}/boot.fbz
    install -m 0644 ${S}/shutdown.fbz ${D}${datadir}/shr-splash/themes/${PN}/shutdown.fbz
    install -m 0644 ${S}/name ${D}${datadir}/shr-splash/themes/${PN}/name
    install -m 0644 ${S}/author ${D}${datadir}/shr-splash/themes/${PN}/author
    install -m 0644 ${S}/preview.png ${D}${datadir}/shr-splash/themes/${PN}/preview.png
}