1 # Contributor: Weng Xuetian <wengxt@gmail.com>
3 pkgname=xulrunner-beta-kde-opensuse
7 pkgdesc="Mozilla Runtime Environment with OpenSUSE patch, integrate better with KDE"
9 license=('MPL' 'GPL' 'LGPL')
10 depends=('gtk2' 'gcc-libs' 'libidl2' 'mozilla-common' 'nss' 'libxt' 'hunspell' 'startup-notification' 'mime-types' 'dbus-glib' 'alsa-lib' 'libevent' 'sqlite3>=3.7.4' 'kmozillahelper>=0.6' 'libproxy' 'libnotify' 'cairo>=1.10.2-2')
11 makedepends=('zip' 'pkg-config' 'diffutils' 'python2' 'wireless_tools' 'autoconf2.13' 'yasm')
12 optdepends=('wireless_tools: Location aware browsing')
13 provides=("xulrunner=${pkgver}")
14 conflicts=('xulrunner' 'xulrunner-kde-opensuse')
15 url="http://wiki.mozilla.org/XUL:Xul_Runner"
16 source=(http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${_ffoxver}/source/firefox-${_ffoxver}.source.tar.bz2
18 mozilla-pkgconfig.patch
19 fix-mozilla-launcher.patch
20 xulrunner-version.patch
21 mozilla-nongnome-proxies.patch
24 mozilla-prefer_plugin_pref.patch
27 md5sums=('060ad2571e781ca72971c4dcdeb79cff'
28 '568a188ca8f5f22004d40d8455226e1a'
29 '02c23dc4ebd88e445533314716331818'
30 '63eee2d1da3b43c9d604f2253f242f40'
31 '613efcc9460dc3024e5a39c922d68cd0'
32 'ea37f26534d1bab452da7945695e2b32'
33 '20b534be0e395963126c002576cc0a81'
34 '54aace328c9b95d9549dd01e75422fb4'
35 '4960e7906d864a36317be2681ce75f6e')
38 cd "${srcdir}/mozilla-2.0"
39 cp "${srcdir}/mozconfig" .mozconfig
41 rm -f toolkit/xre/nsKDEUtils.cpp \
42 toolkit/xre/nsKDEUtils.h \
43 uriloader/exthandler/unix/nsCommonRegistry.cpp \
44 uriloader/exthandler/unix/nsCommonRegistry.h \
45 uriloader/exthandler/unix/nsKDERegistry.cpp \
46 uriloader/exthandler/unix/nsKDERegistry.h \
47 toolkit/content/widgets/dialog-kde.xml \
48 toolkit/content/widgets/preferences-kde.xml \
51 patch -Np0 -i "${srcdir}/idldir.patch" || return 1
53 msg "patch mozilla-nongnome-proxies"
54 patch -Np0 -i "${srcdir}/mozilla-nongnome-proxies.patch" || return 1
56 msg "patch mozilla-kde"
57 patch -Np1 -i "${srcdir}/mozilla-kde.patch" || return 1
59 #fix libdir/sdkdir - fedora
60 msg "patch mozilla-pkgconfig"
61 patch -Np1 -i "${srcdir}/mozilla-pkgconfig.patch"
63 #Fix stub launcher - archlinux
64 msg "patch fix-mozilla-launcher"
65 patch -Np0 -i "${srcdir}/fix-mozilla-launcher.patch"
67 #Force installation to the same path for every version
68 msg "patch xulrunner-version.patch"
69 patch -Np1 -i "${srcdir}/xulrunner-version.patch"
74 make -j1 -f client.mk build MOZ_MAKE_FLAGS="$MAKEFLAGS"
78 cd "${srcdir}/mozilla-2.0"
79 make -j1 DESTDIR="${pkgdir}" -C build install
81 #Remove included dictionaries, add symlink to system myspell path.
82 #Note: this will cause file conflicts when users have installed dictionaries in the old location
83 rm -rf "${pkgdir}/usr/lib/xulrunner-2.0/dictionaries"
84 ln -sf /usr/share/myspell/dicts "${pkgdir}/usr/lib/xulrunner-2.0/dictionaries"
86 # add xulrunner library path to ld.so.conf
87 install -d ${pkgdir}/etc/ld.so.conf.d
88 echo "/usr/lib/xulrunner-2.0" > ${pkgdir}/etc/ld.so.conf.d/xulrunner.conf