summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Bidulock2017-03-12 05:39:19 -0600
committerBrian Bidulock2017-03-12 05:39:19 -0600
commit65faecae8057bcde2ce772671ab99d30f701f799 (patch)
tree832b3a14edd118226d8b86bd55936d3d2c05c880
parent7dc2e83a7dbc2cc07c1d0ec483eb7bab00f49841 (diff)
downloadaur-65faecae8057bcde2ce772671ab99d30f701f799.tar.gz
version 52.0-2
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD112
-rw-r--r--firefox-fixed-loading-icon.pngbin12184 -> 0 bytes
-rw-r--r--firefox.desktop10
-rw-r--r--firefox.install13
-rw-r--r--mozconfig38
-rw-r--r--vendor.js12
7 files changed, 97 insertions, 109 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 547c13080081..ec7cde1824b8 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = firefox-gtk2
pkgdesc = Standalone web browser from mozilla.org
- pkgver = 51.0.1
- pkgrel = 1
+ pkgver = 52.0
+ pkgrel = 2
url = https://www.mozilla.org/firefox/
arch = i686
arch = x86_64
@@ -39,25 +39,22 @@ pkgbase = firefox-gtk2
optdepends = networkmanager: Location detection via available WiFi networks
optdepends = libnotify: Notification integration
optdepends = upower: Battery API
- provides = firefox=51.0.1-1
+ optdepends = speech-dispatcher: Text-to-Speech
+ provides = firefox=52.0-2
conflicts = firefox
options = !emptydirs
options = !makeflags
- source = https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/51.0.1/source/firefox-51.0.1.source.tar.xz
- source = mozconfig
+ source = https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/52.0/source/firefox-52.0.source.tar.xz
source = firefox.desktop
+ source = firefox-symbolic.svg
source = firefox-install-dir.patch
source = rust-i686.patch
- source = vendor.js
- source = firefox-symbolic.svg
source = fix-wifi-scanner.diff
- sha256sums = 30ba00ba716ea1eeda526e2ccc8642f8d18a836793fde50e87a4fcb9d9fccca9
- sha256sums = 5488e59d08787927337b343c74a999e62e36ba1a0715f3ecb1c314e2ff8f1961
- sha256sums = 75c526e9669b91b4fe5dcea650a1e8419220abb2e9564184f0d984c71eae82e8
+ sha256sums = 494ec86875ea60043658e402b664ccd5af4709acc3a478de8729f7cbac9ea3c1
+ sha256sums = ada313750e6fb14558b37c764409a17c1672a351a46c73b350aa1fe4ea9220ef
+ sha256sums = a2474b32b9b2d7e0fb53a4c89715507ad1c194bef77713d798fa39d507def9e9
sha256sums = d86e41d87363656ee62e12543e2f5181aadcff448e406ef3218e91865ae775cd
sha256sums = f61ea706ce6905f568b9bdafd1b044b58f20737426f0aa5019ddb9b64031a269
- sha256sums = 93c5df00f409988bbfa890ac175103476ead3af68f7501973ee70bd11dc472f8
- sha256sums = a2474b32b9b2d7e0fb53a4c89715507ad1c194bef77713d798fa39d507def9e9
sha256sums = 9765bca5d63fb5525bbd0520b7ab1d27cabaed697e2fc7791400abc3fa4f13b8
pkgname = firefox-gtk2
diff --git a/PKGBUILD b/PKGBUILD
index 23abede29845..c3c831e2a421 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,8 +6,8 @@
pkgname=firefox-gtk2
_pkgname=firefox
-pkgver=51.0.1
-pkgrel=1
+pkgver=52.0
+pkgrel=2
pkgdesc="Standalone web browser from mozilla.org"
arch=(i686 x86_64)
license=(MPL GPL LGPL)
@@ -18,25 +18,19 @@ makedepends=(unzip zip diffutils python2 yasm mesa imake gconf libpulse inetutil
autoconf2.13 cargo)
optdepends=('networkmanager: Location detection via available WiFi networks'
'libnotify: Notification integration'
- 'upower: Battery API')
+ 'upower: Battery API'
+ 'speech-dispatcher: Text-to-Speech')
options=(!emptydirs !makeflags)
provides=("firefox=${pkgver}-${pkgrel}")
conflicts=("firefox")
source=(https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz
- mozconfig
- firefox.desktop
- firefox-install-dir.patch
- rust-i686.patch
- vendor.js
- firefox-symbolic.svg
- fix-wifi-scanner.diff)
-sha256sums=('30ba00ba716ea1eeda526e2ccc8642f8d18a836793fde50e87a4fcb9d9fccca9'
- '5488e59d08787927337b343c74a999e62e36ba1a0715f3ecb1c314e2ff8f1961'
- '75c526e9669b91b4fe5dcea650a1e8419220abb2e9564184f0d984c71eae82e8'
+ firefox.desktop firefox-symbolic.svg
+ firefox-install-dir.patch rust-i686.patch fix-wifi-scanner.diff)
+sha256sums=('494ec86875ea60043658e402b664ccd5af4709acc3a478de8729f7cbac9ea3c1'
+ 'ada313750e6fb14558b37c764409a17c1672a351a46c73b350aa1fe4ea9220ef'
+ 'a2474b32b9b2d7e0fb53a4c89715507ad1c194bef77713d798fa39d507def9e9'
'd86e41d87363656ee62e12543e2f5181aadcff448e406ef3218e91865ae775cd'
'f61ea706ce6905f568b9bdafd1b044b58f20737426f0aa5019ddb9b64031a269'
- '93c5df00f409988bbfa890ac175103476ead3af68f7501973ee70bd11dc472f8'
- 'a2474b32b9b2d7e0fb53a4c89715507ad1c194bef77713d798fa39d507def9e9'
'9765bca5d63fb5525bbd0520b7ab1d27cabaed697e2fc7791400abc3fa4f13b8')
validpgpkeys=('2B90598A745E992F315E22C58AB132963A06537A')
@@ -54,9 +48,10 @@ _mozilla_api_key=16674381-f021-49de-8622-3021c5942aff
prepare() {
- cd $_pkgname-$pkgver
+ mkdir path
+ ln -s /usr/bin/python2 path/python
- cp ../mozconfig .mozconfig
+ cd $_pkgname-$pkgver
patch -Np1 -i ../firefox-install-dir.patch
# https://bugzilla.mozilla.org/show_bug.cgi?id=1314968
@@ -66,13 +61,51 @@ prepare() {
patch -Np1 -i ../rust-i686.patch
echo -n "$_google_api_key" >google-api-key
- echo "ac_add_options --with-google-api-keyfile=\"$PWD/google-api-key\"" >>.mozconfig
-
echo -n "$_mozilla_api_key" >mozilla-api-key
- echo "ac_add_options --with-mozilla-api-keyfile=\"$PWD/mozilla-api-key\"" >>.mozconfig
- mkdir "$srcdir/path"
- ln -s /usr/bin/python2 "$srcdir/path/python"
+ cat >.mozconfig <<END
+ac_add_options --enable-application=browser
+
+ac_add_options --prefix=/usr
+ac_add_options --enable-release
+ac_add_options --enable-gold
+ac_add_options --enable-pie
+ac_add_options --enable-rust
+
+ac_add_options --enable-default-toolkit=cairo-gtk2
+
+# Branding
+ac_add_options --enable-official-branding
+ac_add_options --enable-update-channel=release
+export MOZ_ADDON_SIGNING=1
+export MOZ_REQUIRE_SIGNING=1
+
+# Keys
+ac_add_options --with-google-api-keyfile=${PWD@Q}/google-api-key
+ac_add_options --with-mozilla-api-keyfile=${PWD@Q}/mozilla-api-key
+
+# 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-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
+
+# Features
+ac_add_options --enable-startup-notification
+ac_add_options --enable-alsa
+ac_add_options --disable-crashreporter
+ac_add_options --disable-updater
+
+STRIP_FLAGS="--strip-debug"
+END
}
build() {
@@ -90,7 +123,7 @@ build() {
export PATH="$srcdir/path:$PATH"
# Do PGO
- #xvfb-run -a -s "-extension GLX -screen 0 1280x1024x24" \
+ #xvfb-run -a -n 95 -s "-extension GLX -screen 0 1280x1024x24" \
# make -f client.mk build MOZ_PGO=1
make -f client.mk build
}
@@ -99,7 +132,21 @@ package() {
cd $_pkgname-$pkgver
make -f client.mk DESTDIR="$pkgdir" INSTALL_SDK= install
- install -Dm644 ../vendor.js "$pkgdir/usr/lib/firefox/browser/defaults/preferences/vendor.js"
+ _vendorjs="$pkgdir/usr/lib/firefox/browser/defaults/preferences/vendor.js"
+ install -Dm644 /dev/stdin "$_vendorjs" <<END
+// Use LANG environment variable to choose locale
+pref("intl.locale.matchOS", true);
+
+// Disable default browser checking.
+pref("browser.shell.checkDefaultBrowser", false);
+
+// Don't disable our bundled extensions in the application directory
+pref("extensions.autoDisableScopes", 11);
+pref("extensions.shownSelectionUI", true);
+
+// Opt all of us into e10s, instead of just 50%
+pref("browser.tabs.remote.autostart", true);
+END
for i in 16 22 24 32 48 256; do
install -Dm644 browser/branding/official/default$i.png \
@@ -120,11 +167,18 @@ package() {
"$pkgdir/usr/share/applications/firefox.desktop"
# Use system-provided dictionaries
- rm -rf "$pkgdir"/usr/lib/firefox/{dictionaries,hyphenation}
- ln -s /usr/share/hunspell "$pkgdir/usr/lib/firefox/dictionaries"
- ln -s /usr/share/hyphen "$pkgdir/usr/lib/firefox/hyphenation"
+ rm -r "$pkgdir"/usr/lib/firefox/dictionaries
+ ln -Ts /usr/share/hunspell "$pkgdir/usr/lib/firefox/dictionaries"
+ ln -Ts /usr/share/hyphen "$pkgdir/usr/lib/firefox/hyphenation"
+
+ # Install a wrapper to avoid confusion about binary path
+ install -Dm755 /dev/stdin "$pkgdir/usr/bin/firefox" <<END
+#!/bin/sh
+exec /usr/lib/firefox/firefox "\$@"
+END
- # Replace duplicate binary with symlink
+ # Replace duplicate binary with wrapper
# https://bugzilla.mozilla.org/show_bug.cgi?id=658850
- ln -sf firefox "$pkgdir/usr/lib/firefox/firefox-bin"
+ ln -srf "$pkgdir/usr/bin/firefox" \
+ "$pkgdir/usr/lib/firefox/firefox-bin"
}
diff --git a/firefox-fixed-loading-icon.png b/firefox-fixed-loading-icon.png
deleted file mode 100644
index 55f25e591ff5..000000000000
--- a/firefox-fixed-loading-icon.png
+++ /dev/null
Binary files differ
diff --git a/firefox.desktop b/firefox.desktop
index dba01f23a2ca..2014e9ecfba9 100644
--- a/firefox.desktop
+++ b/firefox.desktop
@@ -2,7 +2,7 @@
Version=1.0
Name=Firefox
GenericName=Web Browser
-GenericName[ar]=متصفح ويب
+GenericName[ar]=متصفح وِب
GenericName[ast]=Restolador Web
GenericName[bn]=ওয়েব ব্রাউজার
GenericName[ca]=Navegador web
@@ -43,7 +43,7 @@ GenericName[vi]=Trình duyệt Web
GenericName[zh_CN]=网络浏览器
GenericName[zh_TW]=網路瀏覽器
Comment=Browse the Web
-Comment[ar]=تصفح الشبكة العنكبوتية العالمية
+Comment[ar]=تصفح الوِب
Comment[ast]=Restola pela Rede
Comment[bn]=ইন্টারনেট ব্রাউজ করুন
Comment[ca]=Navegueu per el web
@@ -83,7 +83,7 @@ Comment[uk]=Перегляд сторінок Інтернету
Comment[vi]=Để duyệt các trang web
Comment[zh_CN]=浏览互联网
Comment[zh_TW]=瀏覽網際網路
-Exec=firefox %u
+Exec=/usr/lib/firefox/firefox %u
Icon=firefox
Terminal=false
Type=Application
@@ -199,7 +199,7 @@ Name[wo]=Palanteer bu bees
Name[xh]=Ifestile entsha
Name[zh_CN]=新建窗口
Name[zh_TW]=開新視窗
-Exec=firefox --new-window %u
+Exec=/usr/lib/firefox/firefox --new-window %u
[Desktop Action new-private-window]
Name=New Private Window
@@ -307,4 +307,4 @@ Name[wo]=Panlanteeru biir bu bees
Name[xh]=Ifestile yangasese entsha
Name[zh_CN]=新建隐私浏览窗口
Name[zh_TW]=新增隱私視窗
-Exec=firefox --private-window %u
+Exec=/usr/lib/firefox/firefox --private-window %u
diff --git a/firefox.install b/firefox.install
deleted file mode 100644
index 1a1f4b16b5d2..000000000000
--- a/firefox.install
+++ /dev/null
@@ -1,13 +0,0 @@
-post_install() {
- update-desktop-database -q
- gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
-}
-
-post_upgrade() {
- post_install
-}
-
-post_remove() {
- post_install
-}
-
diff --git a/mozconfig b/mozconfig
deleted file mode 100644
index d36608356646..000000000000
--- a/mozconfig
+++ /dev/null
@@ -1,38 +0,0 @@
-ac_add_options --enable-application=browser
-
-ac_add_options --prefix=/usr
-ac_add_options --enable-release
-ac_add_options --enable-gold
-ac_add_options --enable-pie
-ac_add_options --enable-rust
-
-ac_add_options --enable-default-toolkit=cairo-gtk2
-
-# Release branding
-ac_add_options --enable-official-branding
-ac_add_options --enable-update-channel=release
-MOZ_ADDON_SIGNING=1
-MOZ_REQUIRE_SIGNING=1
-
-# 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-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
-
-# Features
-ac_add_options --enable-startup-notification
-ac_add_options --disable-updater
-ac_add_options --disable-crashreporter
-
-STRIP_FLAGS="--strip-debug"
-
-# vim:set ft=sh:
diff --git a/vendor.js b/vendor.js
deleted file mode 100644
index e4445e1c18cb..000000000000
--- a/vendor.js
+++ /dev/null
@@ -1,12 +0,0 @@
-// Use LANG environment variable to choose locale
-pref("intl.locale.matchOS", true);
-
-// Disable default browser checking.
-pref("browser.shell.checkDefaultBrowser", false);
-
-// Don't disable our bundled extensions in the application directory
-pref("extensions.autoDisableScopes", 11);
-pref("extensions.shownSelectionUI", true);
-
-// Opt all of us into e10s, instead of just 50%
-pref("browser.tabs.remote.autostart", true);