updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / firefox-beta-bin-ru / PKGBUILD
blob79153a6239fb3745d33c0beb150ed822efc2f260
1 # Maintainer: Kovivchak Evgen <oneonfire@gmail.com>
3 pkgname=firefox-beta-bin-ru
4 _pkgreal=firefox-beta-bin
5 _pkgnome=firefox-beta
6 pkgver=10.0b6
7 pkgrel=1
8 _lang=ru
9 _srcurl=http://pv-mirror02.mozilla.org/pub/mozilla.org/firefox/releases
10 pkgdesc='Standalone web browser from mozilla.org! Latest beta with Russian language'
11 url='http://www.mozilla.org/projects/firefox'
12 arch=('i686' 'x86_64')
13 depends=('dbus-glib' 'desktop-file-utils' 'libxt' 'mime-types' 'nss' 'shared-mime-info')
14 license=('MPL' 'GPL' 'LGPL')
15 provides=('firefox-10.0b6')
17 _source_x86=(${_srcurl}/${pkgver}/linux-i686/${_lang}/firefox-${pkgver}.tar.bz2
18              ${_pkgnome}.desktop
19              ${_pkgnome}-safe.desktop)
20 _md5sums_x86=('5316795cbc1601c71106755fd0474e72'
21               '8698d9cd40cdd170349db1315f0f1304'
22               '052799fafa03136743b439fafb17d751')
24 _source_x86_64=(${_srcurl}/${pkgver}/linux-x86_64/${_lang}/firefox-${pkgver}.tar.bz2
25                 ${_pkgnome}.desktop
26                 ${_pkgnome}-safe.desktop)
27 _md5sums_x86_64=('cc318db8a96caddf596335b7a36b4710'
28                  '8698d9cd40cdd170349db1315f0f1304'
29                  '052799fafa03136743b439fafb17d751')
31 source=(${_source_x86[@]})
32 md5sums=(${_md5sums_x86[@]})
34 [ "$CARCH" = "x86_64" ] && source=(${_source_x86_64[@]}) && md5sums=(${_md5sums_x86_64[@]})
36 build() {
37         cd $srcdir
39         mkdir -p $pkgdir/{usr/{bin,share/{applications,pixmaps}},opt}
40         cp -r firefox $pkgdir/opt/${_pkgreal}-$pkgver
42         ln -s /opt/${_pkgreal}-$pkgver/firefox $pkgdir/usr/bin/${_pkgreal}
43         install -m644 $srcdir/{$_pkgnome.desktop,$_pkgnome-safe.desktop} $pkgdir/usr/share/applications/
44         install -m644 $srcdir/firefox/icons/mozicon128.png $pkgdir/usr/share/pixmaps/${_pkgreal}-icon.png