1 # $Id: PKGBUILD 112304 2011-03-04 19:29:22Z ibiru $
2 # Maintainer: Jan de Groot <jgc@archlinux.org>
3 # Contributor: Alexander Baldeck <alexander@archlinux.org>
8 pkgdesc="Mozilla Runtime Environment"
10 license=('MPL' 'GPL' 'LGPL')
11 depends=('gtk2' 'gcc-libs' 'libidl2' 'mozilla-common' 'nss' 'libxt' 'hunspell' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib' 'libevent' 'sqlite3>=3.7.4')
12 makedepends=('zip' 'pkg-config' 'diffutils' 'libgnomeui' 'python2' 'wireless_tools' 'autoconf2.13')
13 url="http://wiki.mozilla.org/XUL:Xul_Runner"
14 source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${_ffoxver}/source/firefox-${_ffoxver}.source.tar.bz2
16 mozilla-pkgconfig.patch
17 fix-mozilla-launcher.patch
18 xulrunner-version.patch
20 enable-x86_64-tracemonkey.patch
23 md5sums=('44d6082ebc31eb5d9d6bdb68402e9ece'
24 '1c5fdebaee7b96308e17d478fbdb3ac3'
25 'd839d1c4ef736e6d89ccf91b23b965a4'
26 '63eee2d1da3b43c9d604f2253f242f40'
27 '371303c5bdc4fa0d955d14521b93b69d'
28 '3bd0566180ad2daa32743b3ce58b2095'
29 'cbd938cd1fb8210cd8a2c41833489af9'
30 'c39773f884c79773db10a1216722441e'
31 'ab3dc9aecae7f08b9492fb3c00a5fd28')
34 cd "${srcdir}/mozilla-1.9.2"
35 cp "${srcdir}/mozconfig" .mozconfig
37 patch -Np1 -i "${srcdir}/offsetof.patch"
39 #fix libdir/sdkdir - fedora
40 patch -Np1 -i "${srcdir}/mozilla-pkgconfig.patch"
42 #Fix stub launcher - archlinux
43 patch -Np0 -i "${srcdir}/fix-mozilla-launcher.patch"
45 #Force installation to the same path for every version
46 patch -Np1 -i "${srcdir}/xulrunner-version.patch"
48 #Fix compile with libpng 1.4
49 patch -Np0 -i "${srcdir}/xulrunner-png14.patch"
51 #Tracemonkey for x86_64
52 patch -Np0 -i "${srcdir}/enable-x86_64-tracemonkey.patch"
55 patch -Np0 -i "${srcdir}/python2.7.patch"
60 make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS"
64 cd "${srcdir}/mozilla-1.9.2"
65 make -j1 DESTDIR="${pkgdir}" install
67 #Remove included dictionaries, add symlink to system myspell path.
68 #Note: this will cause file conflicts when users have installed dictionaries in the old location
69 rm -rf "${pkgdir}/usr/lib/xulrunner-1.9.2/dictionaries"
70 ln -sf /usr/share/myspell/dicts "${pkgdir}/usr/lib/xulrunner-1.9.2/dictionaries"
72 rm -f "${pkgdir}/usr/bin/xulrunner"
73 rm -rf "${pkgdir}/usr/lib/pkgconfig"