surpport seeking the recorded video
[vuplus_openembedded] / recipes / mozilla / firefox-addon.inc
1 # Copyright (C) 2009, O.S. Systems Software Ltda. All Rights Reserved
2 # Released under the MIT license (see packages/COPYING)
3
4 DEPENDS = "unzip-native"
5 RDEPENDS = "firefox"
6
7 S = "${WORKDIR}"
8 FIREFOX_VERSION = "3.0.4"
9
10 do_configure() {
11         unzip -o -q -d xpi *.xpi
12 }
13
14 INC_PR = "r1"
15
16 do_install() {
17         cd ${S}/xpi
18
19         if [ -z ${EXTENSION} ]; then
20            echo "You NEED to define EXTENSION in your recipe. Exiting"
21            exit 1
22         fi
23
24         mkdir -p ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}/chrome
25         mkdir -p ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}/uninstall
26         install -m 644 chrome/*.jar ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}/chrome
27         install -m 644 install.rdf ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}
28         install -m 644 chrome.manifest ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}
29
30         cat install.rdf > ${D}/usr/lib/firefox-${FIREFOX_VERSION}/extensions/${EXTENSION}/uninstall/Uninstall
31 }
32
33 FILES_${PN} += "/usr/lib/firefox-${FIREFOX_VERSION}"
34 PACKAGE_ARCH = "all"