pkgname=firefox-kde pkgver=65.0.1 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 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 nasm) 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. # _kmozillahelper_commit=2ca28e0 #v5.0.2 _kdepatchrev=87f893cf45b9 _kdepatchurl=http://www.rosenauer.org/hg/mozilla/raw-file/$_kdepatchrev _ubuntuver=build2-0ubuntu1 #_ubuntupatchurl=http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox_${pkgver}+${_ubuntuver}.debian.tar.xz # no TLS @2019, really? #_gentoopatch=https://dev.gentoo.org/~{anarchy,axs,polynomial-c,whissi}/mozilla/patchsets/${PATCH}.tar.xz 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 "$_kdepatchurl/firefox-kde.patch" "$_kdepatchurl/firefox-branded-icons.patch" # Gecko/toolkit patchset "$_kdepatchurl/mozilla-nongnome-proxies.patch" "$_kdepatchurl/mozilla-kde.patch" "$_kdepatchurl/mozilla-openaes-decl.patch" # Gentoo patch 1003_foritify_sources_properly.patch 2000_system_harfbuzz_support.patch 2001_system_graphite2_support.patch # Ubuntu patch "http://archive.ubuntu.com/ubuntu/pool/main/f/firefox/firefox_${pkgver%.1}+${_ubuntuver}.debian.tar.xz" # Unused patchset #"$_patchurl/gecko-lockdown.patch" #$_patchurl/firefox-ui-lockdown.patch #"$_patchurl/toolkit-ui-lockdown.patch" # Not appliable # mozilla-gconf-backend.patch: we disabled gconf # mozilla-bmo1463035.patch: not our targetted architecture # mozilla-bmo256180.patch: don't know what it is for # mozilla-cubeb-noreturn.patch looks like this should be upstreamed # mozilla-no-stdcxx-check.patch: we just passed it # mozilla-ntlm-full-path.patch: not affected it seems # mozilla-reduce-files-per-UnifiedBindings.patch ) sha256sums=('67e517f6d1ea8aa5c8f32404b8756f3205c3550917a91a19b0a0edccc656a3cc' 'SKIP' '6c2ea431c36afef67710547ae67e81975254309e9e1c82d8312f765caa950fe5' '1190f251471305f4c96a313b32aa66ee1549125300d7ce385356f45bd8ebcb3d' '7c3b3079e587fb5c7fd8725b4677efb270355c03c8d16513bbe619903038381e' 'eefe8c6d061cce4ea6e357d01f9f764aff198ddd06ff47991e10d1e8ddfc59a3' '29acfc63f366510f471e395cc7a3815108072abda5851c48b64fdb894550408c' 'fa3222d3bc8b14b82b58a8ac2b252fdbd41768a5234d334538a1a3c703a3a73d' '4fc2ff5a197781aff9733f6fe99c99c529eae4eb1ec5a95ef1db0a3d5529b88e' 'be7aa94f682dcb0feec3dd7c277d5d19e3c56fe3d4940203c942bbbefad6ed70' 'e5d8f0410ecd05119119e2d44a88fb5f1eb67a5b1035fd0a66b8cf167fb81c5d' '21949f918907e16919820784bfb51540714c7bb256e219a3d965387b14b18886' '8afb2dbc729487aaf6e43e0ce0e86fb51c6f0bd27c3b6580dbb0c431c1cf9aa0' 'd5a80640c1bc5694f022dfab1b405ef5491ef9677b13f922ec279fc948a64558') # 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 <