aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/freesmartphone/illume-theme-freesmartphone_git.bb
blob: f9c6599ea359629a64ff06b6c61bd49bec959d04 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
DESCRIPTION = "Illume theme for the freesmartphone.org project"
HOMEPAGE = "http://illume.projects.openmoko.org/"
LICENSE = "MIT/BSD"
DEPENDS = "edje-native eet-native"
SRCREV = "b1b0f6adc59e6f72a3929771058e3750bf181bc5"
PV = "0.1.0+gitr${SRCPV}"
PE = "1"
PR = "r0"

SRC_URI = "${FREESMARTPHONE_GIT}/artwork.git;protocol=git;branch=master"
S = "${WORKDIR}/git/illume"

do_compile() {
   cd illume && ./build.sh && cd ..
   cd illume_init && ./build.sh && cd ..
   cd illume-config
   eet -e e.cfg config e.src 1
   eet -e module.battery.cfg config module.battery.src 1
   eet -e module.illume.cfg config module.illume.src 1
}

do_install() {
    install -d ${D}${sysconfdir}/enlightenment
    install -d ${D}${datadir}/enlightenment/data/themes/
    install -d ${D}${datadir}/enlightenment/data/init/
    install -d ${D}${datadir}/enlightenment/data/config/fso/

    # Make fso the default profile
    echo 'E_PROFILE="-profile fso"' > ${D}${sysconfdir}/enlightenment/default_profile

    install -m 0644 ${S}/illume/fso.edj ${D}${datadir}/enlightenment/data/themes/
    install -m 0644 ${S}/illume_init/fso_init.edj ${D}${datadir}/enlightenment/data/init/
    
    install -m 0644 ${S}/illume-config/e.cfg ${D}${datadir}/enlightenment/data/config/fso/
    install -m 0644 ${S}/illume-config/module.battery.cfg ${D}${datadir}/enlightenment/data/config/fso/
    install -m 0644 ${S}/illume-config/module.illume.cfg ${D}${datadir}/enlightenment/data/config/fso/
}

RPROVIDES_${PN} = "illume-theme"
CONFFILES_${PN} = "${sysconfdir}/enlightenment/default_profile"
FILES_${PN} = "${sysconfdir}/enlightenment ${datadir}/enlightenment"

PACKAGE_ARCH_${PN} = "all"