Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=interim.git;a=commitdiff;h=8642f1f24150332140070ab5cd0a4df67e3fe0b4

commit 8642f1f24150332140070ab5cd0a4df67e3fe0b4
Author: Janos Kovacs <[EMAIL PROTECTED]>
Date:   Wed Jun 18 22:10:07 2008 +0200

firefox-3.0-lang
* add new firefox extension build method

diff --git a/source/include/firefox-i18n.sh b/source/include/firefox-i18n.sh
index dee7b56..dbf7c85 100644
--- a/source/include/firefox-i18n.sh
+++ b/source/include/firefox-i18n.sh
@@ -31,11 +31,11 @@
# * archs()
###

-up2date="2.0"
-source=(http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/linux-i686/xpi/$_F_firefox_lang.xpi)
+up2date="3.0"
+source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0/linux-i686/xpi/$_F_firefox_lang.xpi)
pkgname=firefox-$_F_firefox_lang
url="http://www.mozilla.org/projects/l10n/mlp.html";
-rodepends=('firefox>=2.0')
+rodepends=('firefox>=3.0')
makedepends=('unzip')
groups=('locale-extra')
archs=('i686' 'x86_64')
@@ -46,8 +46,11 @@ archs=('i686' 'x86_64')
###
build()
{
-       unzip -qqo $_F_firefox_lang.xpi
-       sed -i 's|chrome/||' chrome.manifest
-       Ffilerel chrome.manifest 
/usr/lib/firefox/chrome/$_F_firefox_lang.manifest
-       Ffilerel chrome/$_F_firefox_lang.jar 
/usr/lib/firefox/chrome/$_F_firefox_lang.jar
+    #this method comes from gentoo 
(http://kambing.ui.edu/gentoo-portage/eclass/mozextension.eclass)
+    cd ${Fsrcdir}              || return 1
+    local emid=$(sed -n -e '/<\?em:id>\?/!d; s/.*\([\"{].*[}\"]\).*/\1/; 
s/\"//g; p; q' install.rdf) || return 1
+    local dstdir=${Fdestdir}/usr/lib/firefox/extensions/${emid}
+    install -d ${dstdir}               || return 1
+    cp -R * ${dstdir}          || return 1
+    rm -f ${dstdir}/${_F_firefox_lang}.xpi || return 1
}
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to