# Maintainer: hawkeye116477 # Contributor: meatatt # Based on firefox-kde Manjaro's PKGBUILD pkgname=waterfox-kde pkgver=56.2.8 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' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'ffmpeg' 'nss>=3.34' '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') 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=3842cd27bdbbd29c98de685a4d9fe3d1247478d0 source=("git+https://github.com/MrAlex94/Waterfox.git#tag=$pkgver" "waterfox.desktop::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/waterfox-kde/waterfox.desktop" waterfox-install-dir.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/waterfox-kde/distribution.ini" "waterfox.1::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/waterfox-kde/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" 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") sha256sums=('SKIP' '6e9ec5f9c6fc5b191f9dec85b82d58eb2a51577b989bc7852e6b254d56ff13e8' 'd86e41d87363656ee62e12543e2f5181aadcff448e406ef3218e91865ae775cd' '911e07ecb0095337c580c94f16b5414c243b26b1080cf0bfd2fac7f76c9a6a43' 'f672e60e22869381e9c4cdd90353a053a0171778eca40d4664bc733822fd535f' '33a8e89e504067914665b7858061f34dc81057961f365024c891aa386afc28ce' 'bf6743660623b7c9a43b94edc8acbcade07aa222ff2102a2808809df333ebe8e' '0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc' '3961c09993c442df97832866ddaea5bcc1ade1313beb313b5ceba60166933016' 'e520e4e40a7b4c09d9da3bc0179619bc595347e23a38a5bbd578df82f8c9aa12' 'be19426cd658ea0ff0dedbdd80da6bf84580c80d92f9b3753da107011dfdd85c' '73e13bf689838e4b27cdb08f040fbafb308aaf2990f5e1bf193a69a9dd736794' 'ea8e1b871c0f1dd29cdea1b1a2e7f47bf4713e2ae7b947ec832dba7dfcc67daa' '5903f99dce010279e2a2f0e56d98e756c5abf9a57e27df5e2239076038868d3d') 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|/usr/lib/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=1382942 patch -Np1 -i ../no-plt.diff cat >.mozconfig <