summaryrefslogtreecommitdiff
path: root/packages/freesmartphone/illume-theme-freesmartphone_git.bb
blob: b94d13cec5c9d14775d5001c83bc06f795e983ea (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
DESCRIPTION = "Illume theme for the freesmartphone.org project"
HOMEPAGE = "http://illume.projects.openmoko.org/"
LICENSE = "MIT/BSD"
DEPENDS = "edje-native eet-native"
PV = "0.0+${PR}-gitr${SRCREV}"
FILE_PR = "r2"

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"