2 # Maintainer: Alexander Baldeck <alexander@archlinux.org>
3 # Contributor: Dale Blount <dale@archlinux.org>
4 # Contributer: Nick Penwarden <toth64@yahoo.com>
9 pkgdesc="Mozilla Firefox 2 Updated - Based on Arch Linux last official release of Firefox 2 (Apr 18 2008)"
11 license=('MPL' 'GPL' 'LGPL')
12 depends=('gtk2>=2.12.0' 'pango>=1.16.1' 'gcc-libs' 'libxt' 'libidl2' 'mozilla-common' 'nss>=3.11.7' 'desktop-file-utils')
13 makedepends=('zip' 'imagemagick' 'pkgconfig' 'gcc' 'diffutils')
14 replaces=('mozilla-firebird' 'phoenix' 'mozilla-firefox')
15 conflicts=('mozilla-firefox')
16 provides=('mozilla-firefox')
17 install=firefox.install
18 url="http://www.mozilla.org/projects/firefox"
19 source=(ftp://ftp.mozilla.org/pub/mozilla.org/${_pkgname}/releases/${pkgver}/source/${_pkgname}-${pkgver}-source.tar.bz2
22 mozilla-firefox-1.0-lang.patch
25 firefox-visibility.patch
26 firefox-1.5-new-gtkim.patch
27 firefox-2.0-add-ldflags.patch
28 firefox-2.0-buildversion.patch
29 firefox-1.5-pango-underline.patch
30 firefox-1.5-pango-justified-range.patch
31 firefox-1.5-xft-rangewidth.patch
32 firefox-2.0-pango-printing.patch
33 firefox-1.5-theme-change.patch
34 iceweasel_2.0.0.12-1_part.patch
37 options=('!makeflags')
40 cd ${startdir}/src/mozilla
41 patch -Np0 -i ${startdir}/src/moz310924.patch || return 1
42 patch -Np0 -i ${startdir}/src/moz325644.patch || return 1
43 patch -Np0 -i ${startdir}/src/launcher.patch || return 1
44 patch -Np1 -i ${startdir}/src/mozilla-firefox-1.0-lang.patch || return 1
45 patch -Np1 -i ${startdir}/src/firefox-1.5-new-gtkim.patch || return 1
46 patch -Np0 -i ${startdir}/src/firefox-2.0-add-ldflags.patch || return 1
47 patch -Np0 -i ${startdir}/src/firefox-2.0-buildversion.patch || return 1
48 patch -Np1 -i ${startdir}/src/firefox-1.5-pango-underline.patch || return 1
49 patch -Np1 -i ${startdir}/src/firefox-1.5-pango-justified-range.patch || return 1
50 patch -Np1 -i ${startdir}/src/firefox-1.5-xft-rangewidth.patch || return 1
51 patch -Np0 -i ${startdir}/src/firefox-2.0-pango-printing.patch || return 1
52 patch -Np0 -i ${startdir}/src/firefox-1.5-theme-change.patch || return 1
53 patch -Np1 -i ${startdir}/src/iceweasel_2.0.0.12-1_part.patch || return 1
55 if [ "$CARCH" = "x86_64" ]; then
56 patch -Np0 -i ../firefox-visibility.patch || return 1
59 export MOZ_PROJECT=browser
61 sed "s/#CFLAGS#/${CFLAGS}/g" ${startdir}/src/mozconfig >.mozconfig
62 make -f client.mk build || return 1
63 make DESTDIR=${startdir}/pkg install || return 1
65 cd ${startdir}/pkg/usr/lib/firefox-${pkgver}
66 export MOZ_DISABLE_GNOME=1
67 export MOZTMP=`mktemp -d -p ${startdir}/src`
68 LD_LIBRARY_PATH=`pwd` HOME=${MOZTMP} ./firefox-bin -register
71 find . -maxdepth 1 -type d -exec rm -rf {} \;
73 #Remove mozilla devel stuff, this is in XULRunner now
74 rm -rf ${startdir}/pkg/usr/share
75 rm -rf ${startdir}/pkg/usr/include
76 rm -rf ${startdir}/pkg/usr/lib/pkgconfig
79 cd ${startdir}/pkg/usr/lib && ln -sf firefox-${pkgver} firefox
81 rm -rf ${startdir}/pkg/usr/bin/defaults
83 mkdir -p ${startdir}/pkg/usr/share/applications
84 mkdir -p ${startdir}/pkg/usr/share/pixmaps
85 convert ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/share/pixmaps/firefox.png
86 install -m644 ${startdir}/src/firefox.desktop ${startdir}/pkg/usr/share/applications/
87 install -m644 ${startdir}/src/firefox-safe.desktop ${startdir}/pkg/usr/share/applications/
89 mkdir -p ${startdir}/pkg/usr/lib/firefox/chrome/icons/default
90 install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/chrome/icons/default/
91 install -m644 ${startdir}/src/mozilla/browser/app/default.xpm ${startdir}/pkg/usr/lib/firefox/icons/
93 md5sums=('90e0b7996a14fdbe6d4e6e4d87980647'
94 'e980891ba998459afb8afe7293f1a2af'
95 '224962b5f2446cab7727fdf07fd526de'
96 'bd5db57c23c72a02a489592644f18995'
97 '29194973e2a535b460c6b7f92c635eaf'
98 '2082c2a2d1cedd08e83179271aacf337'
99 '362f9e0b0f25b964f7120b68fb629ee0'
100 '60b4bbe73d2e919ee4a6476dca6705b6'
101 '25f355113cdee6800380c6e1a4cd38f0'
102 '11b221ff41078d97c131e17361072e47'
103 '713a9587dd024f5d03f1fe9c095da9de'
104 '4d0713c0a94a367a4e84d5f7e56de631'
105 'affb470ca6bac11a7f3005e2508621a8'
106 '52a9fc53aa12117dc392cb1dbdc56ae9'
107 '51681f096254c07149f687fdc4c3c5b7'
108 '0878e1b02081e1ed71929e7553cbe04c'
109 '74ea70c9e935f0e7f7b75436fe33efd5'
110 '5e68cabfcf3c021806b326f664ac505e')