elementary-icon-theme: add 2.2 from openpandora OE overlay
authorKoen Kooi <koen@openembedded.org>
Thu, 8 Apr 2010 12:32:32 +0000 (14:32 +0200)
committerKoen Kooi <koen@openembedded.org>
Thu, 8 Apr 2010 12:32:32 +0000 (14:32 +0200)
recipes/gtk-engines/elementary-icon-theme-enable.bb [new file with mode: 0644]
recipes/gtk-engines/elementary-icon-theme_2.2.bb [new file with mode: 0644]

diff --git a/recipes/gtk-engines/elementary-icon-theme-enable.bb b/recipes/gtk-engines/elementary-icon-theme-enable.bb
new file mode 100644 (file)
index 0000000..abe6afd
--- /dev/null
@@ -0,0 +1,14 @@
+DESCRIPTION = "Enable elementary-icon-theme in gtkrc"
+
+RDEPENDS_${PN} = "elementary-icon-theme"
+
+ALLOW_EMPTY_${PN} = "1"
+PACKAGE_ARCH = "all"
+
+pkg_postinst() {
+#!/bin/sh
+mkdir -p $D${sysconfdir}/gtk-2.0
+touch $D${sysconfdir}/gtk-2.0/gtkrc
+sed -i /gtk-icon-theme-name/d $D${sysconfdir}/gtk-2.0/gtkrc
+echo 'gtk-icon-theme-name = "elementary"' >> $D${sysconfdir}/gtk-2.0/gtkrc
+}
diff --git a/recipes/gtk-engines/elementary-icon-theme_2.2.bb b/recipes/gtk-engines/elementary-icon-theme_2.2.bb
new file mode 100644 (file)
index 0000000..794d1dc
--- /dev/null
@@ -0,0 +1,28 @@
+DESCRIPTION = "Icon theme from the Elementary project"
+SECTION = "x11/icons"
+HOMEPAGE = "http://www.elementary-project.com/"
+
+inherit gtk-icon-cache
+
+# We have to get the icons from a mirror (LaunchPad) as DeviantArt has a download 
+# wrapper to stop simple HTTP gets :(.
+
+SRC_URI = " \
+  http://launchpad.net/elementaryicons/2.0/2.2/+download/elementary_2.2.tar.gz;name=archive \
+"
+
+SRC_URI[archive.md5sum] = "fb740a046d8d728613499a77b77bc1e2"
+SRC_URI[archive.sha256sum] = "49672fc965b30cc6c5c2589a1b72c5187a2d185e7f6d599968172fd694f28ea6"
+
+S = "${WORKDIR}/elementary_2.2"
+
+do_install() {
+        install -d ${D}${datadir}/icons/
+        install -d ${D}${datadir}/icons/elementary/
+        cp -r ${S}/* "${D}${datadir}/icons/elementary/"
+}
+
+FILES_${PN} = "${datadir}/icons/elementary/"
+RDEPENDS_${PN} += "gnome-icon-theme"
+PACKAGE_ARCH = "all"
+