1 # Maintainer: fmoralesc
2 # Contributors: Dan Serban, L42y, aeosynth, karol_007
4 pkgname=firefox-aurora-replacement
7 pkgdesc="Aurora channel, as a replacement for regular firefox"
8 url=http://www.mozilla.org/projects/firefox/
10 license=(MPL GPL LGPL)
11 provides=('firefox=11.0')
12 conflicts=('firefox' 'firefox-aurora')
13 depends=(desktop-file-utils libxt mime-types nss shared-mime-info)
14 source=(firefox.desktop
16 md5sums=('5d343477fbd8d62f0d61f13c7781a17c'
17 'd0e1e1d9208df02d1c0811d6a1725c76')
19 _url_prefix="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora/"
20 _l10n_url_prefix="ftp://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora-l10n/"
21 # if _lang is set to something else than the empty string,
22 # we will try to fetch the corresponding localized version
27 msg "Finding newest version..."
28 if [[ -z $_lang ]]; then
29 wget --spider --no-remove-listing --no-verbose "${_url_prefix}*linux-${CARCH}.tar.bz" 2>/dev/null
30 _file=`awk '/linux-'${CARCH}'.tar.bz/ {print $NF}' .listing | tail -1 | tr -d '\r'`
32 wget --spider --no-remove-listing --no-verbose "${_l10n_url_prefix}*linux-*.tar.bz" 2>/dev/null
33 _file=`awk '/'${_lang}'.linux-'${CARCH}'.tar.bz/ {print $NF}' .listing | tail -1 | tr -d '\r'`
37 if [[ -z $_lang ]]; then
38 wget ${_url_prefix}${_file}
40 wget ${_l10n_url_prefix}${_file}
44 mkdir -p "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt}
45 mv firefox firefox-aurora
46 mv firefox-aurora "${pkgdir}"/opt/
47 ln -s /opt/firefox-aurora/firefox "${pkgdir}"/usr/bin/firefox
48 install -m644 "${startdir}"/{firefox.desktop,firefox-safe.desktop} "${pkgdir}"/usr/share/applications/