34 |
{ |
{ |
35 |
install -d ${SRCDIR} |
install -d ${SRCDIR} |
36 |
munpack ${SRCFILE} ${SRCDIR} || die |
munpack ${SRCFILE} ${SRCDIR} || die |
|
cd ${SRCDIR} |
|
|
|
|
|
# fix location in manifest file |
|
|
sed -i "s|jar:chrome/${MOZ_LANG}.jar|jar:${MOZ_LANG}.jar|" chrome.manifest || die |
|
37 |
} |
} |
38 |
|
|
39 |
mozilla_i18n_src_install() |
mozilla_i18n_src_install() |
40 |
{ |
{ |
41 |
cd ${SRCDIR} |
cd ${SRCDIR} |
42 |
|
|
43 |
# needed directories |
# get install id for the extension |
44 |
minstalldir ${MOZ_HOME}/chrome || die |
local id="$(sed -n -e '/install-manifest/,$ { /em:id/!d; s/.*[\">]\([^\"<>]*\)[\"<].*/\1/; p; q }' install.rdf)" |
45 |
|
|
46 |
minstallfile chrome/${MOZ_LANG}.jar ${MOZ_HOME}/chrome/ || die |
# needed directories |
47 |
minstallfile chrome.manifest ${MOZ_HOME}/chrome/${MOZ_LANG}.manifest || die |
minstalldir ${MOZ_HOME}/extensions/${id} || die |
48 |
|
cp -Rv ${SRCDIR}/* ${BINDIR}/${MOZ_HOME}/extensions/${id} || die |
49 |
} |
} |
50 |
|
|
51 |
export_inherits mozilla_i18n src_prepare src_install |
export_inherits mozilla_i18n src_prepare src_install |