updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / firefox-system-cairo / PKGBUILD
blobe7b85f09bb6be541c51bccec439c1bff543751d4
1 # Contributor: JokerBoy <jokerboy at punctweb dot ro>
2 # Contributor: Jakub Schmidtke <sjakub@gmail.com>
3 pkgname=firefox-system-cairo
4 pkgver=3.6.15
5 pkgrel=1
6 _xulver=1.9.2.15
7 pkgdesc="Standalone web browser from mozilla.org"
8 arch=('i686' 'x86_64')
9 license=('MPL' 'GPL' 'LGPL')
10 depends=("xulrunner-system-cairo=${_xulver}" 'desktop-file-utils')
11 makedepends=('zip' 'pkg-config' 'diffutils' 'libgnomeui>=2.24.1' 'python2' 'wireless_tools' 'autoconf2.13')
12 provides=("firefox=${pkgver}")
13 conflicts=('firefox')
14 install=firefox.install
15 url="http://www.mozilla.org/projects/firefox"
16 source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/source/firefox-${pkgver}.source.tar.bz2
17         anim-gif.patch::https://bug597174.bugzilla.mozilla.org/attachment.cgi?id=494277
18         mozconfig
19         firefox.desktop
20         firefox-safe.desktop
21         mozilla-firefox-1.0-lang.patch
22         browser-defaulturls.patch
23         firefox-version.patch
24         firefox-agent.patch
25         python2.7.patch)
26 md5sums=('fcf8042948d91f1f3d9c33599b79cf35'
27          '1f49278986b926615357fca8e237d311'
28          'ca385167401b98ef7adc6529e4b53205'
29          'bdeb0380c7fae30dd0ead6d2d3bc5873'
30          '6f38a5899034b7786cb1f75ad42032b8'
31          'bd5db57c23c72a02a489592644f18995'
32          '1807651225b021e043154f8bba715a19'
33          '92c11c66dd69b03f214002fededd1fc8'
34          'f437e94acff8f810991271ef4677d859'
35          'ab3dc9aecae7f08b9492fb3c00a5fd28')
37 build() {
38   cd "${srcdir}/mozilla-1.9.2"
39   patch -Np1 -i "${srcdir}/anim-gif.patch"
40   patch -Np1 -i "${srcdir}/mozilla-firefox-1.0-lang.patch"
41   patch -Np1 -i "${srcdir}/browser-defaulturls.patch"
42   patch -Np1 -i "${srcdir}/firefox-version.patch"
43   patch -Np1 -i "${srcdir}/firefox-agent.patch"
44   patch -Np0 -i "${srcdir}/python2.7.patch"
46   cp "${srcdir}/mozconfig" .mozconfig
47   sed -i 's/^#\(.*--enable-system-cairo.*\)$/\1/' .mozconfig
49   unset CFLAGS
50   unset CXXFLAGS
52   export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-3.6"
54   make -j1 -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}"
55   make -j1 DESTDIR="${pkgdir}" install
57   rm -f ${pkgdir}/usr/lib/firefox-3.6/libjemalloc.so
59   install -m755 -d ${pkgdir}/usr/share/{applications,pixmaps}
60   install -m644 ${srcdir}/mozilla-1.9.2/browser/branding/unofficial/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png
61   install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/
62   install -m644 ${srcdir}/firefox-safe.desktop ${pkgdir}/usr/share/applications/