# $Id: PKGBUILD 291937 2017-03-31 06:43:45Z heftig $ # Maintainer: Brian Bidulock # Contributor: Jan Alexander Steffens (heftig) # Contributor: Ionut Biru # Contributor: Jakub Schmidtke pkgname=firefox-gtk2 _pkgname=firefox pkgver=52.0.2 pkgrel=1 pkgdesc="Standalone web browser from mozilla.org" arch=(i686 x86_64) license=(MPL GPL LGPL) url="https://www.mozilla.org/firefox/" depends=(gtk2 mozilla-common libxt startup-notification mime-types dbus-glib alsa-lib ffmpeg libvpx libevent nss hunspell sqlite ttf-font icu) makedepends=(unzip zip diffutils python2 yasm mesa imake gconf libpulse inetutils xorg-server-xvfb autoconf2.13 cargo mercurial) optdepends=('networkmanager: Location detection via available WiFi networks' 'libnotify: Notification integration' 'speech-dispatcher: Text-to-Speech') options=(!emptydirs !makeflags !strip) _repo=https://hg.mozilla.org/releases/mozilla-release provides=("firefox=${pkgver}-${pkgrel}") conflicts=("firefox") source=("hg+$_repo#tag=FIREFOX_${pkgver//./_}_RELEASE" firefox.desktop firefox-symbolic.svg firefox-install-dir.patch rust-i686.patch fix-wifi-scanner.diff) sha256sums=('SKIP' 'ada313750e6fb14558b37c764409a17c1672a351a46c73b350aa1fe4ea9220ef' 'a2474b32b9b2d7e0fb53a4c89715507ad1c194bef77713d798fa39d507def9e9' 'd86e41d87363656ee62e12543e2f5181aadcff448e406ef3218e91865ae775cd' 'f61ea706ce6905f568b9bdafd1b044b58f20737426f0aa5019ddb9b64031a269' '9765bca5d63fb5525bbd0520b7ab1d27cabaed697e2fc7791400abc3fa4f13b8') # Google API keys (see http://www.chromium.org/developers/how-tos/api-keys) # Note: These are for Arch Linux use ONLY. For your own distribution, please # get your own set of keys. Feel free to contact foutrelis@archlinux.org for # more information. _google_api_key=AIzaSyDwr302FpOSkGRpLlUpPThNTDPbXcIn_FM # Mozilla API keys (see https://location.services.mozilla.com/api) # Note: These are for Arch Linux use ONLY. For your own distribution, please # get your own set of keys. Feel free to contact heftig@archlinux.org for # more information. _mozilla_api_key=16674381-f021-49de-8622-3021c5942aff prepare() { mkdir path ln -s /usr/bin/python2 path/python cd mozilla-release patch -Np1 -i ../firefox-install-dir.patch # https://bugzilla.mozilla.org/show_bug.cgi?id=1314968 patch -Np1 -i ../fix-wifi-scanner.diff # Build with the rust targets we actually ship patch -Np1 -i ../rust-i686.patch echo -n "$_google_api_key" >google-api-key echo -n "$_mozilla_api_key" >mozilla-api-key cat >.mozconfig <