# Maintainer: hawkeye116477 # Contributor: meatatt # Based on firefox-kde Manjaro's PKGBUILD pkgname=waterfox-kde pkgver=56.2.0 pkgrel=1 pkgdesc="Free, open and private browser with openSUSE's patches for better integration with KDE" arch=('x86_64') license=('MPL') url="https://www.waterfoxproject.org/" depends=('gtk3' 'gtk2' 'mozilla-common' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'ffmpeg' 'nss>=3.32.1' 'hunspell' 'sqlite' 'ttf-font' 'icu' 'kwaterfoxhelper' 'nspr>=4.15' 'hicolor-icon-theme' 'jemalloc') makedepends=('unzip' 'zip' 'diffutils' 'python2' 'yasm' 'mesa' 'imake' 'gconf' 'inetutils' 'xorg-server-xvfb' 'autoconf2.13' 'rust' 'clang' 'llvm' 'ccache') optdepends=('networkmanager: Location detection via available WiFi networks' 'libnotify: Notification integration' 'pulseaudio: Audio support' 'alsa-lib: Audio support' 'jack: Audio support' 'speech-dispatcher: Text-to-Speech') provides=("waterfox=${pkgver}") conflicts=('waterfox') options=('!emptydirs' '!makeflags' 'zipman') _patchrev=7339b115a221 _patchurl=http://www.rosenauer.org/hg/mozilla/raw-file/$_patchrev _commit=d27e63b27954615324864f3f9f7088a84ad60ebd source=("git+https://github.com/MrAlex94/Waterfox.git#tag=$pkgver" "waterfox.desktop::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/BUILD/waterfox-kde/debian/waterfox.desktop" waterfox-install-dir.patch no-crmf.diff wifi-fix-interface.patch waterfoxproject-kde-56.2.0.patch "firefox-kde-$_patchrev.patch::$_patchurl/firefox-kde.patch" fix_waterfox_browser-kde_xul.patch pgo_fix_missing_kdejs.patch "kde.js::https://raw.githubusercontent.com/hawkeye116477/Waterfox/plasma/_Plasma_Build/kde.js" "distribution.ini::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/BUILD/waterfox-kde/debian/distribution.ini" "waterfox.1::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/BUILD/waterfox-kde/debian/waterfox.1" jack-system-ports.patch "fix_crash_e10s_upload_cancel.patch::https://raw.githubusercontent.com/hawkeye116477/Waterfox/plasma/_Plasma_Build/fix_crash_e10s_upload_cancel.patch" wifi-disentangle.patch 0001-Bug-1384062-Make-SystemResourceMonitor.stop-more-res.patch "mozilla-ucontext-$_patchrev.patch::$_patchurl/mozilla-ucontext.patch" no-plt.diff "unity-menubar-$pkgver.patch::https://bazaar.launchpad.net/~mozillateam/firefox/firefox.xenial/download/1222/unitymenubar.patch-20130215095938-1n6mqqau8tdfqwhg-1/unity-menubar.patch" .gitignore) sha256sums=('SKIP' '2a17f68e86c2c871a1ff32f0a012c7ad20ac542b935044e5ffd9716874641f4d' 'd86e41d87363656ee62e12543e2f5181aadcff448e406ef3218e91865ae775cd' 'fb85a538044c15471c12cf561d6aa74570f8de7b054a7063ef88ee1bdfc1ccbb' 'e98a3453d803cc7ddcb81a7dc83f883230dd8591bdf936fc5a868428979ed1f1' '911e07ecb0095337c580c94f16b5414c243b26b1080cf0bfd2fac7f76c9a6a43' 'f672e60e22869381e9c4cdd90353a053a0171778eca40d4664bc733822fd535f' '33a8e89e504067914665b7858061f34dc81057961f365024c891aa386afc28ce' 'bf6743660623b7c9a43b94edc8acbcade07aa222ff2102a2808809df333ebe8e' '0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc' 'e144a6fac4466acdba86194b43fb41c185c38e296d6262f26c3bff3d2b6db3be' '3c45f43bc9517f149ffdcf4dd3d8bf2a88835b74003cc46d8f4f606dc0ecea12' 'be19426cd658ea0ff0dedbdd80da6bf84580c80d92f9b3753da107011dfdd85c' '73e13bf689838e4b27cdb08f040fbafb308aaf2990f5e1bf193a69a9dd736794' 'f068b84ad31556095145d8fefc012dd3d1458948533ed3fff6cbc7250b6e73ed' 'aba767995ffb1a55345e30aaba667f43d469e23bd9b1b68263cf71b8118acc96' '96d9accb74e19f640e356572b3c0914c6be867cbdf351392b0cb5c00161ee012' 'ea8e1b871c0f1dd29cdea1b1a2e7f47bf4713e2ae7b947ec832dba7dfcc67daa' '5903f99dce010279e2a2f0e56d98e756c5abf9a57e27df5e2239076038868d3d' 'e7ae75f0d1305066a5ba7b60a513d812c769beadaf890a13d1433c9f93242166') prepare() { mkdir path ln -s /usr/bin/python2 path/python # Fix openSUSE's patches for Waterfox #sed -i 's/Firefox/Waterfox/g' $srcdir/mozilla-kde-$_patchrev.patch #sed -i 's/KMOZILLAHELPER/KWATERFOXHELPER/g' $srcdir/mozilla-kde-$_patchrev.patch #sed -i 's|/usr/lib/mozilla/kmozillahelper|/opt/waterfox/kwaterfoxhelper|g' $srcdir/mozilla-kde-$_patchrev.patch #sed -i 's/kmozillahelper/kwaterfoxhelper/g' $srcdir/mozilla-kde-$_patchrev.patch sed -i 's/firefox/waterfox/g' $srcdir/firefox-kde-$_patchrev.patch cd Waterfox patch -Np1 -i ../waterfox-install-dir.patch # https://bugzilla.mozilla.org/show_bug.cgi?id=1371991 patch -Np1 -i ../no-crmf.diff # https://bugzilla.mozilla.org/show_bug.cgi?id=1385667 # https://bugzilla.mozilla.org/show_bug.cgi?id=1394149 patch -Np1 -i ../mozilla-ucontext-$_patchrev.patch # https://bugzilla.mozilla.org/show_bug.cgi?id=1314968 patch -Np1 -i ../wifi-disentangle.patch patch -Np1 -i ../wifi-fix-interface.patch # https://bugzilla.mozilla.org/show_bug.cgi?id=1384062 patch -Np1 -i ../0001-Bug-1384062-Make-SystemResourceMonitor.stop-more-res.patch # https://bugzilla.mozilla.org/show_bug.cgi?id=1382942 patch -Np1 -i ../no-plt.diff cat >.mozconfig <