diff options
author | hawkeye116477 | 2019-10-27 11:41:57 +0100 |
---|---|---|
committer | hawkeye116477 | 2019-10-27 11:41:57 +0100 |
commit | 081e02ec43f5d25c83807aff08a2124a8c5f5ac0 (patch) | |
tree | 51b3e6ee8932e9832aec4131a9c65ec9073e41c8 | |
parent | 5effc4fe0d34d4ad63892b224f85681ff8e4d976 (diff) | |
download | aur-081e02ec43f5d25c83807aff08a2124a8c5f5ac0.tar.gz |
Transitional
-rw-r--r-- | .SRCINFO | 69 | ||||
-rw-r--r-- | PKGBUILD | 249 | ||||
-rw-r--r-- | extension.patch | 22 | ||||
-rw-r--r-- | jack-system-ports.patch | 13 | ||||
-rw-r--r-- | no-plt.diff | 48 | ||||
-rw-r--r-- | pgo_fix_missing_kdejs.patch | 10 | ||||
-rw-r--r-- | ua.patch | 22 |
7 files changed, 8 insertions, 425 deletions
@@ -1,77 +1,16 @@ pkgbase = waterfox-kde - pkgdesc = Free, open and private browser with openSUSE's patches for better integration with KDE + pkgdesc = Transitional package for waterfox-classic-kpe pkgver = 2019.10 - pkgrel = 2 + pkgrel = 3 url = https://www.waterfox.net/ arch = x86_64 license = MPL - makedepends = unzip - makedepends = zip - makedepends = diffutils - makedepends = python2 - makedepends = yasm - makedepends = mesa - makedepends = imake - makedepends = gconf - makedepends = inetutils - makedepends = xorg-server-xvfb - makedepends = autoconf2.13 - makedepends = rust - makedepends = clang - makedepends = llvm - makedepends = git - depends = gtk3 - depends = gtk2 - depends = libxt - depends = startup-notification - depends = mime-types - depends = dbus-glib - depends = ffmpeg - depends = nss>=3.34 - depends = hunspell - depends = sqlite - depends = ttf-font - depends = icu - depends = kwaterfoxhelper - depends = nspr>=4.15 - depends = hicolor-icon-theme - depends = jemalloc - depends = libevent - optdepends = networkmanager: Location detection via available WiFi networks - optdepends = libnotify: Notification integration - optdepends = pulseaudio: Audio support - optdepends = alsa-lib: Audio support - optdepends = jack: Audio support - optdepends = speech-dispatcher: Text-to-Speech - provides = waterfox=2019.10 + depends = waterfox-classic-kpe + provides = waterfox-kde=2019.10 conflicts = waterfox options = !emptydirs options = !makeflags options = zipman - source = git+https://github.com/MrAlex94/Waterfox.git#commit=ce20cfd2b820901a00d11f8bd2e267c58ae4c566 - source = waterfox.desktop::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/waterfox-kde/waterfox.desktop - source = kde.js::https://raw.githubusercontent.com/hawkeye116477/Waterfox/plasma/_Plasma_Build/kde.js - source = distribution.ini::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/waterfox-kde/distribution.ini - source = waterfox.1::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/waterfox-kde/waterfox.1 - source = jack-system-ports.patch - source = no-plt.diff - source = 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 - source = dont-statically-link-libstdc++.patch::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/waterfox-kde/patches/dont-statically-link-libstdc%2B%2B.patch - source = pgo_fix_missing_kdejs.patch - source = extension.patch - source = ua.patch - sha256sums = SKIP - sha256sums = 64d5587093e4d32b0111adf8f531a2e3bfe24e76b8f5166e31cebcad7add8f81 - sha256sums = 0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc - sha256sums = 3961c09993c442df97832866ddaea5bcc1ade1313beb313b5ceba60166933016 - sha256sums = 065244d3f6d88c48b7afec313b7da5a3a04377076e198954cda7951500530b84 - sha256sums = be19426cd658ea0ff0dedbdd80da6bf84580c80d92f9b3753da107011dfdd85c - sha256sums = ea8e1b871c0f1dd29cdea1b1a2e7f47bf4713e2ae7b947ec832dba7dfcc67daa - sha256sums = b55833542edf8cad2b73cf36dac6c667e588dcf79a99b570c5eca645698b80f7 - sha256sums = 877bc1f0e768d96118bb739725e590467773dd897c31263099e52b8d7aaaa4c8 - sha256sums = bf6743660623b7c9a43b94edc8acbcade07aa222ff2102a2808809df333ebe8e - sha256sums = 87b4b11ab95d90d4e84dfb53f785c8cbf233044b8950979b624af8ca6f720d59 - sha256sums = e179856821d463be8ceb75313fa8eb44be7d8580c81b4897e867fefc3e89a864 pkgname = waterfox-kde @@ -1,254 +1,13 @@ # Maintainer: hawkeye116477 <hawkeye116477 at gmail dot com> -# Contributor: meatatt <meatatt at aliyun dot com> -# Based on firefox-kde Manjaro's PKGBUILD pkgname=waterfox-kde pkgver=2019.10 -pkgrel=2 -pkgdesc="Free, open and private browser with openSUSE's patches for better integration with KDE" +pkgrel=3 +pkgdesc="Transitional package for waterfox-classic-kpe" 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}") +depends=('waterfox-classic-kpe') +provides=("waterfox-kde=${pkgver}") conflicts=('waterfox') options=('!emptydirs' '!makeflags' 'zipman') -_patchrev=7339b115a221 -_patchurl=http://www.rosenauer.org/hg/mozilla/raw-file/$_patchrev -_commit=ce20cfd2b820901a00d11f8bd2e267c58ae4c566 -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 - extension.patch - ua.patch) -sha256sums=('SKIP' - '64d5587093e4d32b0111adf8f531a2e3bfe24e76b8f5166e31cebcad7add8f81' - '0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc' - '3961c09993c442df97832866ddaea5bcc1ade1313beb313b5ceba60166933016' - '065244d3f6d88c48b7afec313b7da5a3a04377076e198954cda7951500530b84' - 'be19426cd658ea0ff0dedbdd80da6bf84580c80d92f9b3753da107011dfdd85c' - 'ea8e1b871c0f1dd29cdea1b1a2e7f47bf4713e2ae7b947ec832dba7dfcc67daa' - 'b55833542edf8cad2b73cf36dac6c667e588dcf79a99b570c5eca645698b80f7' - '877bc1f0e768d96118bb739725e590467773dd897c31263099e52b8d7aaaa4c8' - 'bf6743660623b7c9a43b94edc8acbcade07aa222ff2102a2808809df333ebe8e' - '87b4b11ab95d90d4e84dfb53f785c8cbf233044b8950979b624af8ca6f720d59' - 'e179856821d463be8ceb75313fa8eb44be7d8580c81b4897e867fefc3e89a864') - -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 - - patch -Np1 -i ../extension.patch - - patch -Np1 -i ../ua.patch - - cat >.mozconfig <<END -export CC=clang -export CXX=clang++ -export LDFLAGS="-Wl,-z,norelro,-O3,--sort-common,--as-needed,--relax,-z,combreloc,-z,global,--no-omagic" - -ac_add_options --enable-optimize="-O3 -msse2 -mfpmath=sse -march=native -mtune=native -fcolor-diagnostics -w" -ac_add_options --target=$CARCH-pc-linux-gnu - -ac_add_options --enable-alsa -ac_add_options --enable-pulseaudio -ac_add_options --enable-jack - -mk_add_options AUTOCLOBBER=1 -mk_add_options MOZ_MAKE_FLAGS="-j6" - -ac_add_options --prefix=/usr - -ac_add_options --with-app-name=waterfox -ac_add_options --with-app-basename=Waterfox -ac_add_options --with-branding=browser/branding/unofficial - -# Library and chrome format -ac_add_options --enable-chrome-format=omni -ac_add_options --x-libraries=/usr/lib - -# System libraries -ac_add_options --with-system-nspr -ac_add_options --with-system-nss -ac_add_options --with-system-icu -ac_add_options --with-system-jpeg -ac_add_options --with-system-zlib -ac_add_options --with-system-bz2 -ac_add_options --with-system-png -ac_add_options --with-system-libevent -ac_add_options --with-system-libvpx -ac_add_options --enable-system-hunspell -ac_add_options --enable-system-sqlite -ac_add_options --enable-system-ffi -ac_add_options --enable-system-pixman -ac_add_options --disable-libproxy - -# Disable unwanted features -ac_add_options --disable-crashreporter -ac_add_options --disable-js-shell -ac_add_options --disable-maintenance-service -ac_add_options --disable-updater -ac_add_options --disable-verify-mar -ac_add_options --disable-mobile-optimize -ac_add_options --disable-debug -ac_add_options --disable-debug-symbols -ac_add_options --disable-profiling -ac_add_options --disable-signmar -ac_add_options --disable-tests -ac_add_options --disable-parental-controls -ac_add_options --disable-accessibility - -# If you want to have text-to-speech support, comment this line: -ac_add_options --disable-webspeech - -# If you want to have geolocation support, comment this line: -ac_add_options --disable-necko-wifi - -# If you have some problems with Skype Web or other web chat, comment this line: -ac_add_options --disable-webrtc - -# If you want to have gamepad support, comment this line: -ac_add_options --disable-gamepad - -# Enable wanted features -ac_add_options --enable-jemalloc - -# Stylo doesn't compile with Rust 1.38 (needs newer cssparser) -ac_add_options --disable-stylo - -ac_add_options --with-pthreads -ac_add_options --enable-strip -ac_add_options --enable-startup-notification -ac_add_options --enable-release -ac_add_options --enable-rust-simd - -ac_add_options --enable-application=browser -ac_add_options --enable-eme=widevine -ac_add_options --enable-av1 - -export MOZ_GECKO_PROFILER= -export MOZ_ENABLE_PROFILER_SPS= -export MOZ_PROFILING= -END - - echo "Patching for KDE" - #patch -Np1 -i "../mozilla-kde-$_patchrev.patch" - #patch -Np1 -i "../waterfoxproject-kde-56.2.0.patch" - #patch -Np1 -i "../firefox-kde-$_patchrev.patch" - #patch -Np1 -i "../fix_waterfox_browser-kde_xul.patch" - #patch -Np1 -i "../fix_crash_e10s_upload_cancel.patch" - patch -Np1 -i "../waterfox-kde-56.2.10.1.patch" - patch -Np1 -i "../pgo_fix_missing_kdejs.patch" - - # https://bugs.archlinux.org/task/52183 - echo "Patching for Jack" - patch -Np1 -i ../jack-system-ports.patch - -} - -build() { - cd Waterfox - - export PATH="$srcdir/path:$PATH" - ./mach build -} - -package() { - cd Waterfox - - cp "$srcdir/kde.js" obj-$CARCH-pc-linux-gnu/dist/bin/defaults/pref - - DESTDIR="$pkgdir" ./mach install - - _vendor_js="$pkgdir/usr/lib/waterfox/browser/defaults/preferences/vendor.js" - install -Dm644 /dev/stdin "$_vendor_js" <<END -// Disable default browser checking -pref("browser.shell.checkDefaultBrowser", false); - -// Don't disable extensions dropped in to a system -// location, or those owned by the application -pref("extensions.autoDisableScopes", 3); - -// Don't display the one-off addon selection dialog when -// upgrading from a version of Waterfox older than 8.0 -pref("extensions.shownSelectionUI", true); - -// Use LANG environment variable to choose locale -pref("intl.locale.matchOS", true); - -// Fall back to en-US search plugins if none exist for the current locale -pref("distribution.searchplugins.defaultLocale", "en-US"); - -// Use OS regional settings for date and time -pref("intl.regional_prefs.use_os_locales", true); -END - - install -Dm644 "$srcdir/kde.js" "$pkgdir/usr/lib/waterfox/browser/defaults/preferences/kde.js" - - for i in 16 22 24 32 48 64 128 256; do - install -Dm644 browser/branding/unofficial/default$i.png \ - "$pkgdir/usr/share/icons/hicolor/${i}x${i}/apps/waterfox.png" - done - install -Dm644 browser/branding/unofficial/content/about-logo.png \ - "$pkgdir/usr/share/icons/hicolor/192x192/apps/waterfox.png" - install -Dm644 browser/branding/unofficial/content/about-logo@2x.png \ - "$pkgdir/usr/share/icons/hicolor/384x384/apps/waterfox.png" - - install -Dm644 $srcdir/waterfox.desktop \ - "$pkgdir/usr/share/applications/waterfox.desktop" - - install -Dm644 $srcdir/waterfox.1 \ - "$pkgdir/usr/share/man/man1/waterfox.1" - - install -Dm644 $srcdir/distribution.ini \ - "$pkgdir/usr/lib/waterfox/distribution/distribution.ini" - - # Use system-provided dictionaries - if [ -d $pkgdir/usr/lib/waterfox/dictionaries ]; then - rm -r "$pkgdir"/usr/lib/waterfox/dictionaries - fi - - ln -Ts /usr/share/hunspell "$pkgdir/usr/lib/waterfox/dictionaries" - ln -Ts /usr/share/hyphen "$pkgdir/usr/lib/waterfox/hyphenation" - - # Install a wrapper to avoid confusion about binary path - install -Dm755 /dev/stdin "$pkgdir/usr/bin/waterfox" <<END -#!/bin/sh -exec /usr/lib/waterfox/waterfox "\$@" -END - - # Replace duplicate binary with wrapper - # https://bugzilla.mozilla.org/show_bug.cgi?id=658850 - ln -srf "$pkgdir/usr/bin/waterfox" \ - "$pkgdir/usr/lib/waterfox/waterfox-bin" -} diff --git a/extension.patch b/extension.patch deleted file mode 100644 index 9aab23d4eef0..000000000000 --- a/extension.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 68014c079a1d4afa26aaad13466fcc76d0f6dcc4 Mon Sep 17 00:00:00 2001 -From: Alex Kontos <MrAlex94@users.noreply.github.com> -Date: Wed, 16 Oct 2019 21:45:24 +0100 -Subject: [PATCH] Fix usage of undefined variable extension - ---- - toolkit/components/extensions/extension-process-script.js | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/toolkit/components/extensions/extension-process-script.js b/toolkit/components/extensions/extension-process-script.js -index 8509335993ba..6f2b385df93b 100644 ---- a/toolkit/components/extensions/extension-process-script.js -+++ b/toolkit/components/extensions/extension-process-script.js -@@ -303,7 +303,7 @@ ExtensionManager = { - policy = new WebExtensionPolicy({ - id: data.id, - mozExtensionHostname: data.uuid, -- name: extension.name, -+ name: data.name, - baseURL: data.resourceURL, - - permissions: Array.from(data.permissions), diff --git a/jack-system-ports.patch b/jack-system-ports.patch deleted file mode 100644 index 33ac249bbd01..000000000000 --- a/jack-system-ports.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/media/libcubeb/src/cubeb_jack.cpp b/media/libcubeb/src/cubeb_jack.cpp -index b49b66785f7c..80061dd709a7 100644 ---- a/media/libcubeb/src/cubeb_jack.cpp -+++ b/media/libcubeb/src/cubeb_jack.cpp -@@ -861,7 +861,7 @@ cbjack_stream_init(cubeb * context, cubeb_stream ** stream, char const * stream_ - } - } - -- cbjack_connect_ports(stm); -+ //cbjack_connect_ports(stm); - - *stream = stm; - diff --git a/no-plt.diff b/no-plt.diff deleted file mode 100644 index 9014f8b791c7..000000000000 --- a/no-plt.diff +++ /dev/null @@ -1,48 +0,0 @@ -diff --git i/security/nss/lib/freebl/mpi/mpi_x86.s w/security/nss/lib/freebl/mpi/mpi_x86.s -index 8f7e2130c3264754..b3ca1ce5b41b3771 100644 ---- i/security/nss/lib/freebl/mpi/mpi_x86.s -+++ w/security/nss/lib/freebl/mpi/mpi_x86.s -@@ -22,22 +22,41 @@ is_sse: .long -1 - # - .ifndef NO_PIC - .macro GET var,reg -- movl \var@GOTOFF(%ebx),\reg -+ call thunk.ax -+ addl $_GLOBAL_OFFSET_TABLE_, %eax -+ movl \var@GOTOFF(%eax),\reg - .endm - .macro PUT reg,var -- movl \reg,\var@GOTOFF(%ebx) -+ call thunk.dx -+ addl $_GLOBAL_OFFSET_TABLE_, %edx -+ movl \reg,\var@GOTOFF(%edx) - .endm - .else - .macro GET var,reg - movl \var,\reg - .endm - .macro PUT reg,var - movl \reg,\var - .endm - .endif - - .text - -+.ifndef NO_PIC -+.globl thunk.ax -+.hidden thunk.ax -+.type thunk.ax, @function -+thunk.ax: -+ movl (%esp),%eax -+ ret -+ -+.globl thunk.dx -+.hidden thunk.dx -+.type thunk.dx, @function -+thunk.dx: -+ movl (%esp),%edx -+ ret -+.endif - - # ebp - 36: caller's esi - # ebp - 32: caller's edi diff --git a/pgo_fix_missing_kdejs.patch b/pgo_fix_missing_kdejs.patch deleted file mode 100644 index 03c56e9fdbdb..000000000000 --- a/pgo_fix_missing_kdejs.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- b/browser/app/Makefile.in 2016-02-14 15:57:50.000000000 +0100 -+++ a/browser/app/Makefile.in 2016-02-14 16:08:29.823744590 +0100 -@@ -71,6 +71,7 @@ - libs:: $(srcdir)/profile/channel-prefs.js - $(NSINSTALL) -D $(DIST)/bin/defaults/pref - $(call py_action,preprocessor,-Fsubstitution $(PREF_PPFLAGS) $(ACDEFINES) $^ -o $(DIST)/bin/defaults/pref/channel-prefs.js) -+ cp $(topsrcdir)/../kde.js $(DIST)/bin/defaults/pref/kde.js - - ifeq (cocoa,$(MOZ_WIDGET_TOOLKIT)) - diff --git a/ua.patch b/ua.patch deleted file mode 100644 index 3430c9405e4f..000000000000 --- a/ua.patch +++ /dev/null @@ -1,22 +0,0 @@ -From 02999ce8d80bd2d996e61faaec654a69820d6c65 Mon Sep 17 00:00:00 2001 -From: hawkeye116477 <hawkeye116477@gmail.com> -Date: Wed, 16 Oct 2019 18:47:51 +0200 -Subject: [PATCH] Restore user-agent overrides for Linux - ---- - browser/installer/package-manifest.in | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/browser/installer/package-manifest.in b/browser/installer/package-manifest.in -index d5f12ce064bc..52a686a67b0c 100644 ---- a/browser/installer/package-manifest.in -+++ b/browser/installer/package-manifest.in -@@ -146,7 +146,7 @@ - @BINPATH@/@DLL_PREFIX@mozavcodec@DLL_SUFFIX@ - #endif - @RESPATH@/browser/blocklist.xml --#ifdef XP_WIN -+#if defined(XP_WIN) || defined(XP_LINUX) - @BINPATH@/browser/ua-update.json - #endif - #ifdef XP_MACOSX |