From 555fa9cca6265aa8c185dd92da6331a644740f43 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 7 Oct 2009 15:59:17 -0300 Subject: firefox-addon-full-fullscreen: add 3.3 --- recipes/mozilla/firefox-addon.inc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 recipes/mozilla/firefox-addon.inc (limited to 'recipes/mozilla/firefox-addon.inc') 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" -- cgit v1.2.3