diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2009-11-15 21:51:37 +0100 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2009-11-15 21:51:37 +0100 |
commit | c010062f3c2abd1471512c4275f3cb6ed9513661 (patch) | |
tree | 867a143d48e15e1497393c5bf14e128975ea44da /recipes/shr/etk-theme.inc | |
parent | 6824a826530a26992854e727234e692d5427caf0 (diff) | |
parent | 6187540bc302a541ef90fd0069a64a194b1f7348 (diff) |
Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/shr/etk-theme.inc')
-rw-r--r-- | recipes/shr/etk-theme.inc | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes/shr/etk-theme.inc b/recipes/shr/etk-theme.inc new file mode 100644 index 0000000000..6e8b33db27 --- /dev/null +++ b/recipes/shr/etk-theme.inc @@ -0,0 +1,34 @@ +SECTION = "e/utils" +DEPENDS = "edje-native" +RDEPENDS = "etk" + +S = "${WORKDIR}/git/etk/${PN}/" + +do_compile() { + ${STAGING_BINDIR_NATIVE}/edje_cc -id ${S}/. -fd ${S}/. ${S}/default.edc -o ${S}/default.edj +} + +do_install() { + install -d ${D}${datadir}/etk/themes.${PN}/ + install -m 0644 ${S}/default.edj ${D}${datadir}/etk/themes.${PN}/ +} + +FILES_${PN} = "${datadir}/etk/themes.${PN}" + +inherit update-alternatives + +ALTERNATIVE_NAME = "etk-theme" +ALTERNATIVE_LINK = "${datadir}/etk/themes" +ALTERNATIVE_PATH = "${datadir}/etk/themes.${PN}" +ALTERNATIVE_PRIORITY ?= 1 + +pkg_postinst() { + if [[ -e ${ALTERNATIVE_LINK} && ! -h ${ALTERNATIVE_LINK} ]] ; then + echo "warn: ${ALTERNATIVE_LINK} exists and it's not a link!" + echo "warn: It will be replaced with link managed by update-alternatives" + echo "warn: Moving ${ALTERNATIVE_LINK} to ${ALTERNATIVE_LINK}.old." + echo "warn: It should be empty but probably isn't!" + echo "warn: Check what's left there and remove it manually." + mv -f ${ALTERNATIVE_LINK} ${ALTERNATIVE_LINK}.old + fi +} |