# Maintainer: hawkeye116477 # Maintainer: meatatt # Based on firefox-kde Manjaro's PKGBUILD pkgname=waterfox-kde pkgver=55.1.0.1 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' 'hunspell' 'sqlite' 'ttf-font' 'icu' 'kwaterfoxhelper' 'nspr' 'hicolor-icon-theme') 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=b2ba34e0dc10 _patchurl=http://www.rosenauer.org/hg/mozilla/raw-file/$_patchrev _commit=ffd62b838aaf70b271d978f12059ddc93f0c5878 source=("git+https://github.com/MrAlex94/Waterfox.git#commit=$_commit" "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::https://raw.githubusercontent.com/manjaro/packages-community/master/firefox-kde/wifi-fix-interface.patch" "mozilla-kde.patch::$_patchurl/mozilla-kde.patch" "firefox-kde.patch::$_patchurl/firefox-kde.patch" "fix_waterfox_browser-kde_xul.patch::https://raw.githubusercontent.com/hawkeye116477/Waterfox/plasma/_Plasma_Build/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 disable_e10s.patch "wifi-disentangle.patch::https://raw.githubusercontent.com/manjaro/packages-community/099344c3c9cb7ec70a6b769b7069bf9f815e5640/firefox-kde/wifi-disentangle.patch" "harmony-fix.diff::https://raw.githubusercontent.com/manjaro/packages-community/099344c3c9cb7ec70a6b769b7069bf9f815e5640/firefox-kde/harmony-fix.diff" "clip-ft-glyph.diff::https://raw.githubusercontent.com/manjaro/packages-community/099344c3c9cb7ec70a6b769b7069bf9f815e5640/firefox-kde/clip-ft-glyph.diff" "fixformach.diff::https://aur.archlinux.org/cgit/aur.git/plain/fixformach.diff?h=firefox-clean" "glibc-2.26-fix.diff::https://aur.archlinux.org/cgit/aur.git/plain/glibc-2.26-fix.diff?h=firefox-clean") sha256sums=('SKIP' '2a17f68e86c2c871a1ff32f0a012c7ad20ac542b935044e5ffd9716874641f4d' 'd86e41d87363656ee62e12543e2f5181aadcff448e406ef3218e91865ae775cd' 'fb85a538044c15471c12cf561d6aa74570f8de7b054a7063ef88ee1bdfc1ccbb' 'e98a3453d803cc7ddcb81a7dc83f883230dd8591bdf936fc5a868428979ed1f1' '512d9a06acdb30b023a0601ecf2f7b5104e2838d4431957b97910f24d98b5bef' 'a3af6d55c07fd4cd06c044bc1bf289caf16f40d8eb150bc505e035e37696bfa2' '774d13c0d319b83a3f90d15ceed093e80ff07a2794038c95ffa79539ca2819cc' 'bf6743660623b7c9a43b94edc8acbcade07aa222ff2102a2808809df333ebe8e' '0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc' 'e144a6fac4466acdba86194b43fb41c185c38e296d6262f26c3bff3d2b6db3be' '03a25b7bde971ecfa35326b3c6e45450da325babed29d9cc2e10dd639f816ef6' 'be19426cd658ea0ff0dedbdd80da6bf84580c80d92f9b3753da107011dfdd85c' 'b7170633c30d69ee4de646dcf24b161ef8c79927a835c925697f8db5d1175da3' 'f068b84ad31556095145d8fefc012dd3d1458948533ed3fff6cbc7250b6e73ed' '16bb776e9f3039321db747b2eaece0cda1320f3711fb853a68d67247b0aa065d' 'd5e5580a96ecc4a66ce12dde0737c1ed5cb31017a6ec488ffe372192ed893e1b' '9a354afad0042e2fa4bf29cb32f6c179669ad26f1764325443d1339a23f245f0' 'cd7ff441da66a287f8712e60cdc9e216c30355d521051e2eaae28a66d81915e8') 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.patch sed -i 's/KMOZILLAHELPER/KWATERFOXHELPER/g' $srcdir/mozilla-kde.patch sed -i 's|/usr/lib/mozilla/kmozillahelper|/opt/waterfox/kwaterfoxhelper|g' $srcdir/mozilla-kde.patch sed -i 's/kmozillahelper/kwaterfoxhelper/g' $srcdir/mozilla-kde.patch sed -i 's/firefox/waterfox/g' $srcdir/firefox-kde.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 ../glibc-2.26-fix.diff # 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=1393467 patch -Np1 -i ../clip-ft-glyph.diff # https://bugzilla.mozilla.org/show_bug.cgi?id=1400721 patch -Np1 -i ../harmony-fix.diff # Fix build with latest Python patch -Np1 -i ../fixformach.diff cat >.mozconfig <