updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / firefox4 / PKGBUILD
blob3ca1b75bbf16a120455bfcd01d857fefadaec440
1 # $Id: PKGBUILD 90129 2010-09-08 10:38:46Z ibiru $
2 # Maintainer: Konstantin Shabanov <kes.eclipse@gmail.com>
3 # Contributor: Jakub Schmidtke <sjakub@gmail.com>
5 pkgname=firefox4
6 pkgver=4.0.1
7 pkgrel=1
8 pkgdesc="Standalone web browser from mozilla.org"
9 arch=('i686' 'x86_64')
10 license=('MPL' 'GPL' 'LGPL')
11 conflicts=('firefox' 'firefox-pgo')
12 provides=('firefox')
13 depends=('desktop-file-utils' 'startup-notification>=0.8' 'dbus-glib>=0.82')
14 makedepends=('zip' 'pkg-config' 'diffutils' 'libgnomeui>=2.24.1' 'python2' 'wireless_tools' 'yasm' 'ccache' 'autoconf2.13' 'cairo-tee' 'nss>=3.12.9')
15 install=firefox.install
16 url="http://www.mozilla.com/en-US/firefox/beta/"
17 source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/source/firefox-${pkgver}.source.tar.bz2
18         mozconfig
19         firefox.desktop
20         firefox-safe.desktop)
22 md5sums=('9abda7d23151e97913c8555a64c13f34'
23          'd257f4b05ddf668d85a6bd8acbe8df80'
24          'ba96924ece1d77453e462429037a2ce5'
25          '6f38a5899034b7786cb1f75ad42032b8')
27 build() {
28   cd "${srcdir}/mozilla-2.0"
30   cp "${srcdir}/mozconfig" .mozconfig
32   export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-4.0"
33   make -f client.mk build
36   if [ "$CARCH" = "x86_64" ]; then
37     make DESTDIR="${pkgdir}" -C obj-x86_64-unknown-linux-gnu install
38   else
39     make DESTDIR="${pkgdir}" -C obj-i686-pc-linux-gnu install
40   fi 
42   install -m755 -d ${pkgdir}/usr/share/{applications,pixmaps}
43   install -m644 ${srcdir}/mozilla-2.0/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png
44   install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/
45   install -m644 ${srcdir}/firefox-safe.desktop ${pkgdir}/usr/share/applications/