Magellan Linux

Annotation of /trunk/include/mozilla_i18n.sminc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 19660 - (hide annotations) (download)
Wed Oct 9 08:46:17 2013 UTC (11 years ago) by niro
File size: 1141 byte(s)
-do not cd into SRCDIR, because it does not exist
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     mozilla_i18n_src_install()
33     {
34 niro 11031 # get install id for the extension
35 niro 19656 local id="langpack-${MOZ_LANG}@firefox.mozilla.org"
36 niro 11031
37 niro 2 # needed directories
38 niro 11031 minstalldir ${MOZ_HOME}/extensions/${id} || die
39 niro 19656 minstallfile ${SOURCESDIR}/${PNAME}/${SRCFILE} ${BINDIR}/${MOZ_HOME}/extensions/${id}.xpi || die
40 niro 2 }
41    
42 niro 19656 export_inherits mozilla_i18n src_install