1 # $Id: PKGBUILD 97212 2010-10-27 20:58:06Z ibiru $
2 # Contributor: Jakub Schmidtke <sjakub@gmail.com>
8 pkgdesc="Standalone web browser from mozilla.org with debug symbols"
10 license=('MPL' 'GPL' 'LGPL')
11 depends=("xulrunner=${_xulver}" 'desktop-file-utils')
12 makedepends=('zip' 'pkg-config' 'diffutils' 'libgnomeui>=2.24.1' 'python2' 'wireless_tools' 'autoconf2.13')
13 install=firefox.install
14 url="http://www.mozilla.org/projects/firefox"
15 source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/source/firefox-${pkgver}.source.tar.bz2
19 mozilla-firefox-1.0-lang.patch
20 browser-defaulturls.patch
24 md5sums=('d7c90aed8209beefa74badf02e8eeae1'
25 'ca385167401b98ef7adc6529e4b53205'
26 'ba96924ece1d77453e462429037a2ce5'
27 '6f38a5899034b7786cb1f75ad42032b8'
28 'bd5db57c23c72a02a489592644f18995'
29 '1807651225b021e043154f8bba715a19'
30 '92c11c66dd69b03f214002fededd1fc8'
31 'f437e94acff8f810991271ef4677d859'
32 'ab3dc9aecae7f08b9492fb3c00a5fd28')
35 cd "${srcdir}/mozilla-1.9.2"
36 patch -Np1 -i "${srcdir}/mozilla-firefox-1.0-lang.patch"
37 patch -Np1 -i "${srcdir}/browser-defaulturls.patch"
38 patch -Np1 -i "${srcdir}/firefox-version.patch"
39 patch -Np1 -i "${srcdir}/firefox-agent.patch"
40 patch -Np0 -i "${srcdir}/python2.7.patch"
42 cp "${srcdir}/mozconfig" .mozconfig
47 export MOZ_DEBUG_SYMBOLS=1
48 export CFLAGS="-gstabs+"
49 export CXXFLAGS="-gstabs+"
51 export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-3.6"
53 make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}"
55 # make -C objdir buildsymbols
57 make -j1 DESTDIR="${pkgdir}" install
59 rm -f ${pkgdir}/usr/lib/firefox-3.6/libjemalloc.so
61 install -m755 -d ${pkgdir}/usr/share/{applications,pixmaps}
62 install -m644 ${srcdir}/mozilla-1.9.2/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png
63 install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/
64 install -m644 ${srcdir}/firefox-safe.desktop ${pkgdir}/usr/share/applications/