pkgname=firefox-kde pkgver=63.0.3 pkgrel=1 pkgdesc="Standalone web browser from mozilla.org with OpenSUSE patch, integrate better with KDE" arch=('x86_64') license=('MPL' 'GPL' 'LGPL') url="https://www.mozilla.org/firefox/" depends=(gtk3 mozilla-common libxt startup-notification mime-types dbus-glib alsa-lib ffmpeg libvpx libevent libproxy nss nspr pixman kio knotifications kwindowsystem ki18n) makedepends=(unzip zip diffutils python2 yasm mesa imake libpulse inetutils xorg-server-xvfb autoconf2.13 gtk2 gobject-introspection jack rust gconf cmake extra-cmake-modules llvm clang lld cbindgen nodejs) optdepends=('networkmanager: Location detection via available WiFi networks' 'libnotify: Notification integration' 'upower: Battery API' 'firefox-i18n: for multilanguage support' 'hunspell: for spell check support') options=(!emptydirs !strip) screenshot="http://img864.imageshack.us/img864/5116/firefoxm.png" provides=("firefox=${pkgver}" "kmozillahelper=5.0.2") conflicts=('kmozillahelper') replaces=('kmozillahelper') # # For whom want to update this package # # Notes on mercurial release revision # http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${pkgver}/SOURCE # This URL uses CDN so it's faster, but maybe out of date when new firefox release comes out. # # Find Firefox KDE related patch: # patch http://www.rosenauer.org/hg/mozilla/ # patch https://build.opensuse.org/package/show?package=MozillaFirefox&project=mozilla%3AFactory # # Usually, we also port non-openSUSE specific patch together. # _patchrev=4b99400f6d17 _kmozillahelper_commit=2ca28e0 #v5.0.2 _patchurl=http://www.rosenauer.org/hg/mozilla/raw-file/$_patchrev source=("https://releases.mozilla.org/pub/firefox/releases/${pkgver}/source/${pkgname%%-kde}-${pkgver}.source.tar.xz" "git://github.com/openSUSE/kmozillahelper#commit=${_kmozillahelper_commit}" 'firefox.desktop' 'ddg.xml' 'pgo-fix-missing-kdejs.patch' # Firefox patchset "$_patchurl/firefox-kde.patch" "$_patchurl/firefox-branded-icons.patch" # Gecko/toolkit patchset "$_patchurl/mozilla-nongnome-proxies.patch" "$_patchurl/mozilla-kde.patch" "$_patchurl/mozilla-openaes-decl.patch" # Gentoo patch 1002_fix_pie_detection.patch 1003_foritify_sources_properly.patch 2000_system_harfbuzz_support.patch 2001_system_graphite2_support.patch # Ubuntu patch unity-menubar.patch # Useless patchset #"$_patchurl/gecko-lockdown.patch" #"$_patchurl/mozilla-idldir.patch" #$_patchurl/firefox-ui-lockdown.patch #"$_patchurl/toolkit-ui-lockdown.patch" #"$_patchurl/mozilla-bmo1088588.patch" # Specify for ARM and PPC #"$_patchurl/toolkit-download-folder.patch" #"$_patchurl/mozilla-language.patch" # making use of LANGUAGE= env var which isn't part of our standard #"$_patchurl/mozilla-prefer_plugin_pref.patch" removed from opensuse. reason: dropped mozilla-prefer_plugin_pref.patch as this feature is likely not worth maintaining further #"$_patchurl/mozilla-shared-nss-db.patch" shared by default now ) sha256sums=('48a834daa9c5773272a30933936ea8a78b217494355749ee68996639451d0931' 'SKIP' '6c2ea431c36afef67710547ae67e81975254309e9e1c82d8312f765caa950fe5' '1190f251471305f4c96a313b32aa66ee1549125300d7ce385356f45bd8ebcb3d' '7c3b3079e587fb5c7fd8725b4677efb270355c03c8d16513bbe619903038381e' 'd6b7a81c9e11740480cedda791974bdfa2c44fd93a22db38ad020d78d2afb73e' '29acfc63f366510f471e395cc7a3815108072abda5851c48b64fdb894550408c' 'ef0f90c9134ef05b950f06a3ffbd699c2e5a5f99a4cdf9868e799534d68c204f' 'de50ebcc6b0fd59e970cf1e19dab09f7c7b2b7c75724fd2ac1fa367c1cd79c20' 'be7aa94f682dcb0feec3dd7c277d5d19e3c56fe3d4940203c942bbbefad6ed70' '2b679a3cb082d73bec085b8529a56030a990106408f4d9e73915ec51f4c3259e' 'e5d8f0410ecd05119119e2d44a88fb5f1eb67a5b1035fd0a66b8cf167fb81c5d' 'e72782d0fc5a4b1ef5d9bdaaad4631b686e4b6a89f6b511327c48cb4096d1e08' '4c75f71ba636934ded24eecb3a81f5ba6583e88db2dd9025c842aefc9c8ef216' '722324ef522f3e2452f49924e47a2e8a3a547e18aef32d7c1252113eb839451f') # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) # Note: These are for Chakra Linux use ONLY. For your own distribution, please # get your own set of keys. Feel free to contact totte@chakralinux.org for # more information. _google_api_key=AIzaSyDjyg8EmaRUIsewzdjZXFZ0O8N5ARDUDGU # Mozilla API keys (see https://location.services.mozilla.com/api) # Note: These are for Chakra Linux use ONLY. For your own distribution, please # get your own set of keys. Feel free to contact totte@chakralinux.org for # more information. _mozilla_api_key=bf05f841-e0bd-4644-81f5-3c132755f2e9 prepare() { mkdir path ln -s /usr/bin/python2 path/python #cd ${srcdir}/mozilla-release-${_changeset} cd ${srcdir}/${pkgname%%-kde}-${pkgver} echo -n "$_google_api_key" > google-api-key echo -n "$_mozilla_api_key" > mozilla-api-key msg 'Generating kde.js' cat >kde.js <.mozconfig <