# Maintainer: hawkeye116477 # Contributor: meatatt # Based on firefox-kde Manjaro's PKGBUILD pkgname=waterfox-kde pkgver=56.2.13 pkgrel=2 pkgdesc="Free, open and private browser with openSUSE's patches for better integration with KDE" arch=('x86_64') license=('MPL') url="https://www.waterfox.net/" 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' 'libevent') makedepends=('unzip' 'zip' 'diffutils' 'python2' 'yasm' 'mesa' 'imake' 'gconf' 'inetutils' 'xorg-server-xvfb' 'autoconf2.13' 'rust' 'clang' 'llvm' 'git') 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=e19194a11adea6f9892969eb98a750476a6ce044 source=("git+https://github.com/MrAlex94/Waterfox.git#commit=$_commit" "waterfox.desktop::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/waterfox-kde/waterfox.desktop" "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 no-plt.diff "waterfox-kde-56.2.10.1.patch::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/waterfox-kde/patches/waterfox-kde-56.2.10.1.patch" "dont-statically-link-libstdc++.patch::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/waterfox-kde/patches/dont-statically-link-libstdc%2B%2B.patch" pgo_fix_missing_kdejs.patch) sha256sums=('SKIP' '6e9ec5f9c6fc5b191f9dec85b82d58eb2a51577b989bc7852e6b254d56ff13e8' '0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc' '3961c09993c442df97832866ddaea5bcc1ade1313beb313b5ceba60166933016' '065244d3f6d88c48b7afec313b7da5a3a04377076e198954cda7951500530b84' 'be19426cd658ea0ff0dedbdd80da6bf84580c80d92f9b3753da107011dfdd85c' 'ea8e1b871c0f1dd29cdea1b1a2e7f47bf4713e2ae7b947ec832dba7dfcc67daa' 'b55833542edf8cad2b73cf36dac6c667e588dcf79a99b570c5eca645698b80f7' '877bc1f0e768d96118bb739725e590467773dd897c31263099e52b8d7aaaa4c8' 'bf6743660623b7c9a43b94edc8acbcade07aa222ff2102a2808809df333ebe8e') 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 ../dont-statically-link-libstdc++.patch # https://bugzilla.mozilla.org/show_bug.cgi?id=1382942 patch -Np1 -i ../no-plt.diff cat >.mozconfig <