updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / firefox-branded-kde / PKGBUILD
blobb349bd06c549c4bb29445cb7fb659e61253eef7e
1 # Contributor: Jose Alcalá <gskbyte - - gmail - com>
3 pkgname=firefox-branded-kde
4 pkgver=3.5.7
5 pkgrel=1
6 _xulver=1.9.1.7
7 pkgdesc="Standalone web browser from mozilla.org, modified for a better integration with KDE."
8 arch=(i686 x86_64)
9 license=('MPL' 'GPL' 'LGPL')
10 depends=("xulrunner>=${_xulver}" 'desktop-file-utils' 'gtk-qt-engine' 'kgtk')
11 makedepends=('zip' 'pkgconfig' 'diffutils' 'libgnomeui>=2.24.1' 'python')
12 optdepends=('qtcurve-gtk2 and qtcurve-kde4: a good theme for Qt and Gtk integration.'
13             'oxygen-molecule-theme: Gtk Theme that (greatly) emulates Oxygen theme'
14             'oxygenrefit2-icon-theme: Oxygen icons in Gtk/GNOME apps')
15 replaces=('firefox' 'firefox3' 'firefox3-branded' 'firefox-branded')
16 conflicts=('firefox' 'firefox3' 'firefox3-branded' 'firefox-branded')
17 provides=("firefox=${pkgver}")
18 install=firefox.install
19 url="http://www.mozilla.org/projects/firefox"
20 source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/source/firefox-${pkgver}.source.tar.bz2
21         https://addons.mozilla.org/firefox/downloads/latest/12196/platform:2/addon-12196-latest.xpi
22         mozconfig
23         firefox.desktop
24         firefox-safe.desktop
25         mozilla-firefox-1.0-lang.patch
26         browser-defaulturls.patch
27         firefox-version.patch
28         )
29 md5sums=('82e6f568ddeaae52e85aa089277f5d14'
30          '4eed1edac2230f53e4f803c7754e8bf5'
31          '372a79e9447aa2d4d00140d4c98b1273'
32          '720078eb4547792dcc44b4a110cf6fbf'
33          '5e68cabfcf3c021806b326f664ac505e'
34          'bd5db57c23c72a02a489592644f18995'
35          '346d74ec560e7bbf453c02ff21f4b868'
36          '1dd9a10df0b9e4cf332eadc326d78e07'
37          )
39 build() {
40   cd "${srcdir}/mozilla-1.9.1"
41   patch -Np1 -i "${srcdir}/mozilla-firefox-1.0-lang.patch" || return 1
42   patch -Np0 -i "${srcdir}/browser-defaulturls.patch" || return 1
43   patch -Np1 -i "${srcdir}/firefox-version.patch" || return 1
45   cp "${srcdir}/mozconfig" .mozconfig
47   export LDFLAGS="-Wl,-rpath,/usr/lib/firefox-3.5"
49   make -f client.mk build MOZ_MAKE_FLAGS="${MAKEFLAGS}" || return 1
50   make DESTDIR="${pkgdir}" install || return 1
52   rm -f ${pkgdir}/usr/lib/firefox-3.5/libjemalloc.so
54   install -m755 -d ${pkgdir}/usr/share/applications
55   install -m755 -d ${pkgdir}/usr/share/pixmaps
56   install -m644 ${srcdir}/mozilla-1.9.1/other-licenses/branding/firefox/default48.png ${pkgdir}/usr/share/pixmaps/firefox.png || return 1
57   install -m644 ${srcdir}/firefox.desktop ${pkgdir}/usr/share/applications/ || return 1
58   install -m644 ${srcdir}/firefox-safe.desktop ${pkgdir}/usr/share/applications/ || return 1
60   # install PlasmaNotify extension
61   install -m755 -d ${pkgdir}/usr/lib/firefox-3.5/extensions/plasmanotify@andreas-demmer.de/
62   cp -R ${srcdir}/chrome ${pkgdir}/usr/lib/firefox-3.5/extensions/plasmanotify@andreas-demmer.de/ || return 1
63   cp -R ${srcdir}/defaults ${pkgdir}/usr/lib/firefox-3.5/extensions/plasmanotify@andreas-demmer.de/ || return 1
64   chmod -R 755 ${pkgdir}/usr/lib/firefox-3.5/extensions/plasmanotify@andreas-demmer.de// || return 1
65   install -m755 ${srcdir}/install.rdf ${pkgdir}/usr/lib/firefox-3.5/extensions/plasmanotify@andreas-demmer.de/ || return 1
66   install -m755 ${srcdir}/chrome.manifest ${pkgdir}/usr/lib/firefox-3.5/extensions/plasmanotify@andreas-demmer.de/ || return 1