updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / bin32-firefox / PKGBUILD
blob3cf02d9d8e51ab33e01663855634a230b4a75621
1 # Maintainer: c0nd0r <gcesarmza@gmail.com>
2 # Contributor: Thomas Dziedzic < gostrc at gmail >
3 # Contributor: webjdm <web.jdm@gmail.com>
5 pkgname=bin32-firefox
6 pkgver=9.0.1
7 pkgrel=1
8 pkgdesc="bin32-firefox for Arch x86_64 (en-US)"
9 arch=('x86_64')
10 license=('MPL' 'GPL' 'LGPL')
11 url="http://www.mozilla.org/projects/firefox"
12 depends=('lib32-dbus-glib' 'lib32-gtk2' 'lib32-libxt' 'lib32-alsa-lib' 'lib32-nss' 'lib32-xcb-util')
13 optdepends=('bin32-firefox-i18n: i18n support'
14             'lib32-flashplugin: flash support'
15             'bin32-acroread: adobe reader plugin'
16             'bin32-icedtea-web: java plugin'
17             'lib32-librsvg: svg_loader.so library'
18             'lib32-gtk-engines: libclearlooks.so library')
19 source=("http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/linux-i686/en-US/firefox-${pkgver}.tar.bz2"
20         'firefox32.desktop' 'firefox32-safe.desktop' 'mozplugin.patch')
21 md5sums=('a6ac0d7478410455be816c41597d5a9f'
22          'f93c2d52600eaf905b2e9c8df318d9a6'
23          '803ab3405d3c30d0a947ffe1d7d224aa'
24          '8ef4b2a15b9d5e9d5bd5df323dbf012f')
26 build() {
27   # directory and files
28   cd ${pkgdir}
29   mkdir -p {usr/bin,usr/lib32}
30   cp -r ${srcdir}/firefox usr/lib32/${pkgname}
31   mv usr/lib32/${pkgname}/firefox usr/lib32/${pkgname}/firefox32
32   mv usr/lib32/${pkgname}/firefox-bin usr/lib32//${pkgname}/firefox32-bin
33   cat <<EOF > usr/bin/${pkgname}
34 #!/bin/bash
35 /opt/${pkgname}/run-mozilla.sh /usr/lib32/${pkgname}/firefox32 \$*
36 EOF
37   chmod +x usr/bin/${pkgname}
39   # desktop icons
40   cd ${srcdir}
41   install -d ${pkgdir}/usr/share/applications
42   install -Dm644 firefox32.desktop firefox32-safe.desktop ${pkgdir}/usr/share/applications
43   install -Dm644 firefox/icons/mozicon128.png ${pkgdir}/usr/share/pixmaps/firefox32.png
45   # set MOZ_PLUGIN_PATH variable
46   cd ${pkgdir}/usr/lib32/${pkgname}
47   patch -Np0 -i ${srcdir}/mozplugin.patch