Magellan Linux

Annotation of /trunk/include/mozilla_i18n.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19665 - (hide annotations) (download)
Wed Oct 9 10:15:55 2013 UTC (11 years ago) by niro
File size: 1254 byte(s)
-only create extension dir. the id dir overrides the xpi
1 niro 9863 # $Id$
2 niro 2 # functions for mozilla i18n
3     #
4     # MOZ_SUITE, MOZ_LANG, STATE, PVER and PBUILD must be given
5     #
6    
7 niro 15834 MOZ_HOME="/usr/$(mlibdir)/${MOZ_SUITE}"
8     PNAME="${MOZ_SUITE}-lang-${MOZ_LANG}"
9 niro 2
10 niro 15837 PCAT="app-lang"
11 niro 2 case ${MOZ_SUITE} in
12 niro 15837 firefox) DEP_PCAT="net-www" ;;
13     thunderbird) DEP_PCAT="net-mail" ;;
14 niro 2 esac
15    
16     DESCRIPTION="Mozilla ${MOZ_SUITE} ${PVER} - ${MOZ_LANG} language files."
17     HOMEPAGE="http://www.mozilla.org/products/${MOZ_SUITE}/"
18    
19 niro 15837 DEPEND="== ${DEP_PCAT}/${MOZ_SUITE}-${PVER}"
20 niro 2
21     SRCFILE="${MOZ_LANG}.xpi"
22     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23    
24     sminclude mtools
25    
26     SRC_URI=(
27 niro 19657 #ftp://ftp.mozilla.org/pub/mozilla.org/${MOZ_SUITE}/releases/${PVER}/linux-i686/xpi/${SRCFILE}
28     http://ftp.mozilla.org/pub/mozilla.org/${MOZ_SUITE}/releases/${PVER}/linux-i686/xpi/${SRCFILE}
29 niro 2 mirror://${PNAME/-${MOZ_LANG}/}/${PVER}/${SRCFILE}
30     )
31    
32 niro 19662 mozilla_i18n_src_prepare()
33     {
34     install -d ${SRCDIR} || die
35     cd ${SRCDIR}
36     cp ${SOURCEDIR}/${PNAME}/${SRCFILE} ${SRCDIR}/ || die
37     }
38    
39 niro 2 mozilla_i18n_src_install()
40     {
41 niro 11031 # get install id for the extension
42 niro 19656 local id="langpack-${MOZ_LANG}@firefox.mozilla.org"
43 niro 11031
44 niro 2 # needed directories
45 niro 19665 minstalldir ${MOZ_HOME}/extensions || die
46 niro 19664 minstallfile ${SRCDIR}/${SRCFILE} ${MOZ_HOME}/extensions/${id}.xpi || die
47 niro 2 }
48    
49 niro 19662 export_inherits mozilla_i18n src_prepare src_install