updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / firefox-aurora-ru / PKGBUILD
blobe38545e27b818aab945657031ec3b3442fd4def7
1 # Maintainer: jim945
2 # Contributors: L42y, aeosynth, Dan Serban
4 pkgname=firefox-aurora-ru
5 pkgver=latest
6 pkgrel=1
7 pkgdesc="Aurora channel"
8 url=http://www.mozilla.org/projects/firefox/
9 arch=(i686 x86_64)
10 license=(MPL GPL LGPL)
11 makedepends=(lynx)
12 depends=(desktop-file-utils libxt mime-types nss shared-mime-info)
13 source=(firefox-aurora.desktop
14         firefox-aurora-safe.desktop)
15 md5sums=('c93a70dbe8e2668bae99952b248ae48c'
16          '1fbf95734ceb475ac2ac6ab085fc1961')
18 _url_prefix="http://ftp.mozilla.org/pub/mozilla.org/firefox/nightly/latest-mozilla-aurora-l10n/"
20 package()
22   _url=$(lynx -dump "${_url_prefix}" | grep -o http.*ru.linux-${CARCH}.tar.bz2 | tail -1)
23   msg "Downloading..."
24   wget ${_url}
25   msg "Extracting..."
26   bsdtar -xf $(basename ${_url})
27   mkdir -p "${pkgdir}"/{usr/{bin,share/{applications,pixmaps}},opt}
28   mv firefox "${pkgdir}"/opt/firefox-aurora/
29   ln -s /opt/firefox-aurora/firefox "${pkgdir}"/usr/bin/firefox-aurora
30   install -m644 "${startdir}"/{firefox-aurora.desktop,firefox-aurora-safe.desktop} "${pkgdir}"/usr/share/applications/
31   install -m644 "${pkgdir}"/opt/firefox-aurora/icons/mozicon128.png "${pkgdir}"/usr/share/pixmaps/firefox-aurora-icon.png