summaryrefslogtreecommitdiff
path: root/recipes/mozilla/firefox-addon.inc
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2009-10-07 15:59:17 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2009-10-13 12:40:21 -0300
commit555fa9cca6265aa8c185dd92da6331a644740f43 (patch)
treed461a4bc6bbaa56b3c514cc5703882ba0c9d411e /recipes/mozilla/firefox-addon.inc
parent917267467f664d516a45eef981d70c7e237e32de (diff)
firefox-addon-full-fullscreen: add 3.3
Diffstat (limited to 'recipes/mozilla/firefox-addon.inc')
-rw-r--r--recipes/mozilla/firefox-addon.inc34
1 files changed, 34 insertions, 0 deletions
diff --git a/recipes/mozilla/firefox-addon.inc b/recipes/mozilla/firefox-addon.inc
new file mode 100644
index 0000000000..fa0eca6d48
--- /dev/null
+++ b/recipes/mozilla/firefox-addon.inc
@@ -0,0 +1,34 @@
+# Copyright (C) 2009, O.S. Systems Software Ltda. All Rights Reserved
+# Released under the MIT license (see packages/COPYING)
+
+DEPENDS = "unzip-native"
+RDEPENDS = "firefox"
+
+S = "${WORKDIR}"
+FIREFOX_VERSION = "3.0.4"
+
+do_configure() {
+ unzip -o -q -d xpi *.xpi
+}
+
+INC_PR = "r1"
+
+do_install() {
+ cd ${S}/xpi
+
+ if [ -z ${EXTENSION} ]; then
+ echo "You NEED to define EXTENSION in your recipe. Exiting"
+ exit 1
+ fi
+
+ mkdir -p ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}/chrome
+ mkdir -p ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}/uninstall
+ install -m 644 chrome/*.jar ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}/chrome
+ install -m 644 install.rdf ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}
+ install -m 644 chrome.manifest ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}
+
+ cat install.rdf > ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}/uninstall/Uninstall
+}
+
+FILES_${PN} += "/usr/lib/firefox-${FIREFOX_VERSION}"
+PACKAGE_ARCH = "all"