summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhawkeye1164772017-09-11 21:54:12 +0200
committerhawkeye1164772017-09-11 21:54:12 +0200
commit100313ff61f54fcf3d91e6eb8651c0f52fc34ac9 (patch)
tree4e39c03cf09ea723842820671c332eb85a5a9ff9
parentc09618a015b280ae9e8e20d961bf0bccf5394fd8 (diff)
downloadaur-100313ff61f54fcf3d91e6eb8651c0f52fc34ac9.tar.gz
Switch source to git and other improvements
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD57
-rw-r--r--disable_e10s.patch13
-rw-r--r--jack-system-ports.patch13
4 files changed, 64 insertions, 30 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e06400098a89..6c0013bd0294 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
-# Wed Aug 23 18:39:31 UTC 2017
+# Mon Sep 11 19:53:04 UTC 2017
pkgbase = waterfox-kde
pkgdesc = Free, open and private browser with openSUSE's patches for better integration with KDE
pkgver = 55.0.2
- pkgrel = 2
+ pkgrel = 3
url = https://www.waterfoxproject.org/
arch = x86_64
license = MPL
@@ -19,7 +19,6 @@ pkgbase = waterfox-kde
makedepends = xorg-server-xvfb
makedepends = autoconf2.13
makedepends = cargo
- makedepends = rust
makedepends = clang
makedepends = llvm
makedepends = ccache
@@ -52,7 +51,7 @@ pkgbase = waterfox-kde
options = !emptydirs
options = !makeflags
options = zipman
- source = waterfox-55.0.2.source.tar.gz::https://github.com/MrAlex94/Waterfox/archive/49aea8cd7265240eab5d1361c5094f0586987dbd.tar.gz
+ source = git+https://github.com/MrAlex94/Waterfox.git#commit=49aea8cd7265240eab5d1361c5094f0586987dbd
source = waterfox.desktop::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/BUILD/waterfox-kde/debian/waterfox.desktop
source = waterfox-install-dir.patch
source = no-crmf.diff
@@ -64,6 +63,8 @@ pkgbase = waterfox-kde
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/BUILD/waterfox-kde/debian/distribution.ini
source = waterfox.1::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/BUILD/waterfox-kde/debian/waterfox.1
+ source = jack-system-ports.patch
+ source = disable_e10s.patch
sha256sums = SKIP
sha256sums = 2a17f68e86c2c871a1ff32f0a012c7ad20ac542b935044e5ffd9716874641f4d
sha256sums = d86e41d87363656ee62e12543e2f5181aadcff448e406ef3218e91865ae775cd
@@ -76,6 +77,8 @@ pkgbase = waterfox-kde
sha256sums = 0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc
sha256sums = e144a6fac4466acdba86194b43fb41c185c38e296d6262f26c3bff3d2b6db3be
sha256sums = 03a25b7bde971ecfa35326b3c6e45450da325babed29d9cc2e10dd639f816ef6
+ sha256sums = be19426cd658ea0ff0dedbdd80da6bf84580c80d92f9b3753da107011dfdd85c
+ sha256sums = b7170633c30d69ee4de646dcf24b161ef8c79927a835c925697f8db5d1175da3
pkgname = waterfox-kde
diff --git a/PKGBUILD b/PKGBUILD
index 431d6562a175..2cde13653a4f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,10 +1,10 @@
# Maintainer: hawkeye116477 <hawkeye116477 at gmail dot com>
+# Contributor: meatatt <meatatt at aliyun dot com>
# Based on firefox-kde Manjaro's PKGBUILD
pkgname=waterfox-kde
-_pkgname=Waterfox
pkgver=55.0.2
-pkgrel=2
+pkgrel=3
pkgdesc="Free, open and private browser with openSUSE's patches for better integration with KDE"
arch=('x86_64')
license=('MPL')
@@ -12,7 +12,7 @@ url="https://www.waterfoxproject.org/"
depends=('gtk3' 'gtk2' 'mozilla-common' 'libxt' 'startup-notification' 'mime-types' 'dbus-glib' 'ffmpeg'
'nss' 'hunspell' 'sqlite' 'ttf-font' 'icu' 'libvpx' 'kwaterfoxhelper' 'libevent' 'nspr' 'hicolor-icon-theme')
makedepends=('unzip' 'zip' 'diffutils' 'python2' 'yasm' 'mesa' 'imake' 'gconf' 'inetutils' 'xorg-server-xvfb'
- 'autoconf2.13' 'cargo' 'rust' 'clang' 'llvm' 'ccache')
+ 'autoconf2.13' 'cargo' 'clang' 'llvm' 'ccache')
optdepends=('networkmanager: Location detection via available WiFi networks'
'libnotify: Notification integration'
'pulseaudio: Audio support'
@@ -25,7 +25,7 @@ options=('!emptydirs' '!makeflags' 'zipman')
_patchrev=fde25c29562d
_patchurl=http://www.rosenauer.org/hg/mozilla/raw-file/$_patchrev
_commit=49aea8cd7265240eab5d1361c5094f0586987dbd
-source=("waterfox-$pkgver.source.tar.gz::https://github.com/MrAlex94/Waterfox/archive/$_commit.tar.gz"
+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
@@ -36,7 +36,9 @@ source=("waterfox-$pkgver.source.tar.gz::https://github.com/MrAlex94/Waterfox/ar
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")
+ "waterfox.1::https://raw.githubusercontent.com/hawkeye116477/waterfox-deb/master/BUILD/waterfox-kde/debian/waterfox.1"
+ jack-system-ports.patch
+ disable_e10s.patch)
sha256sums=('SKIP'
'2a17f68e86c2c871a1ff32f0a012c7ad20ac542b935044e5ffd9716874641f4d'
'd86e41d87363656ee62e12543e2f5181aadcff448e406ef3218e91865ae775cd'
@@ -48,14 +50,14 @@ sha256sums=('SKIP'
'bf6743660623b7c9a43b94edc8acbcade07aa222ff2102a2808809df333ebe8e'
'0850a8a8dea9003c67a8ee1fa5eb19a6599eaad9f2ad09db753b74dc5048fdbc'
'e144a6fac4466acdba86194b43fb41c185c38e296d6262f26c3bff3d2b6db3be'
- '03a25b7bde971ecfa35326b3c6e45450da325babed29d9cc2e10dd639f816ef6')
+ '03a25b7bde971ecfa35326b3c6e45450da325babed29d9cc2e10dd639f816ef6'
+ 'be19426cd658ea0ff0dedbdd80da6bf84580c80d92f9b3753da107011dfdd85c'
+ 'b7170633c30d69ee4de646dcf24b161ef8c79927a835c925697f8db5d1175da3')
prepare() {
mkdir path
ln -s /usr/bin/python2 path/python
- mv $srcdir/$_pkgname-$_commit $srcdir/$pkgname-$pkgver
-
# 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
@@ -63,7 +65,7 @@ prepare() {
sed -i 's/kmozillahelper/kwaterfoxhelper/g' $srcdir/mozilla-kde.patch
sed -i 's/firefox/waterfox/g' $srcdir/firefox-kde.patch
- cd $pkgname-$pkgver
+ cd Waterfox
patch -Np1 -i ../waterfox-install-dir.patch
# https://bugzilla.mozilla.org/show_bug.cgi?id=1371991
@@ -159,38 +161,31 @@ END
patch -Np1 -i "$srcdir/mozilla-kde.patch"
patch -Np1 -i "$srcdir/firefox-kde.patch"
patch -Np1 -i "$srcdir/fix_waterfox_browser-kde_xul.patch"
+ patch -Np1 -i "../disable_e10s.patch"
msg "Add missing file in Makefile for pgo builds"
- patch -Np1 -i "$srcdir/pgo_fix_missing_kdejs.patch"
+ patch -Np1 -i "../pgo_fix_missing_kdejs.patch"
+
+ # https://bugs.archlinux.org/task/52183
+ msg "Patching for Jack"
+ patch -Np1 -i ../jack-system-ports.patch
}
build() {
- cd $pkgname-$pkgver
+ cd Waterfox
export PATH="$srcdir/path:$PATH"
make -f client.mk build
}
package() {
- cd $pkgname-$pkgver
+ cd Waterfox
cp "$srcdir/kde.js" obj-$CARCH-pc-linux-gnu/dist/bin/defaults/pref
make -f client.mk DESTDIR="$pkgdir" INSTALL_SDK= install
- _vendorgrejs="$pkgdir/opt/waterfox/defaults/pref/vendor-gre.js"
- install -Dm644 /dev/stdin "$_vendorgrejs" <<END
-// 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");
-
-// Enable Network Manager integration
-pref("network.manage-offline-status", true);
-END
-
- _vendor_wfjs="$pkgdir/opt/waterfox/browser/defaults/preferences/vendor-waterfox.js"
- install -Dm644 /dev/stdin "$_vendor_wfjs" <<END
+ _vendor_js="$pkgdir/opt/waterfox/browser/defaults/preferences/vendor.js"
+ install -Dm644 /dev/stdin "$_vendor_js" <<END
// Disable default browser checking
pref("browser.shell.checkDefaultBrowser", false);
@@ -201,6 +196,16 @@ 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");
+
+// Enable Screenshots extension
+pref("extensions.screenshots.system-disabled", false);
+
END
install -Dm644 "$srcdir/kde.js" "$pkgdir/opt/waterfox/browser/defaults/preferences/kde.js"
diff --git a/disable_e10s.patch b/disable_e10s.patch
new file mode 100644
index 000000000000..102a6a70e62f
--- /dev/null
+++ b/disable_e10s.patch
@@ -0,0 +1,13 @@
+diff --git a/browser/app/profile/firefox.js b/browser/app/profile/firefox.js
+index 3218a733b50c..d5a9329ed28d 100644
+--- a/browser/app/profile/firefox.js
++++ b/browser/app/profile/firefox.js
+@@ -1504,7 +1504,7 @@ pref("browser.tabs.remote.desktopbehavior", true);
+ // We leave it here set to false to reset users' defaults and allow
+ // us to change everybody to true in the future, when desired.
+ pref("browser.tabs.remote.autostart.1", false);
+-pref("browser.tabs.remote.autostart.2", true);
++pref("browser.tabs.remote.autostart.2", false;
+ #endif
+
+ // For the about:tabcrashed page
diff --git a/jack-system-ports.patch b/jack-system-ports.patch
new file mode 100644
index 000000000000..33ac249bbd01
--- /dev/null
+++ b/jack-system-ports.patch
@@ -0,0 +1,13 @@
+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;
+