Add Ninja Theme as default
authorjulian_chu@openmoko.com <julian_chu@openmoko.com>
Sun, 11 May 2008 23:32:35 +0000 (23:32 +0000)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sun, 26 Oct 2008 14:52:09 +0000 (15:52 +0100)
packages/openmoko-projects/etk-theme-ninja_svn.bb [new file with mode: 0644]

diff --git a/packages/openmoko-projects/etk-theme-ninja_svn.bb b/packages/openmoko-projects/etk-theme-ninja_svn.bb
new file mode 100644 (file)
index 0000000..3dfe562
--- /dev/null
@@ -0,0 +1,28 @@
+DESCRIPTION = "Ninja - Etk theme"
+HOMEPAGE = "http://ninja.projects.openmoko.org/"
+SECTION = "openmoko/misc"
+LICENSE = "GPL"
+DEPENDS = "edje"
+PV = "0.0.1+svnr${SRCREV}"
+
+SRC_URI = "svn://svn.projects.openmoko.org/svnroot/ninja;module=trunk;proto=https"
+
+SRCREV = "${AUTOREV}"
+S = "${WORKDIR}/trunk"
+
+inherit autotools pkgconfig
+
+EXTRA_OECONF = "--with-edje-cc=${STAGING_BINDIR_NATIVE}/edje_cc"
+
+PACKAGE_ARCH = "all"
+# All of this package is just data, doesn't need dev,dbg package
+PACKAGES = "${PN}"
+
+FILES_${PN} += "${datadir}/ninja/default.edj"
+
+pkg_postinst_${PN} () {
+        update-alternatives --install ${datadir}/etk/themes/default.edj etk-default.edj ${datadir}/ninja/default.edj 50
+}
+pkg_postrm_${PN} () {
+        update-alternatives --remove etk-default.edj ${datadir}/ninja/default.edj
+}