# Maintainer: Devin Cofer # Contributor: Kyle De'Vir (QuartzDragon) # Contributor: Jonas Heinrich # Contributor: Maxwell Anselm # Contributor: Jan Alexander Steffens (heftig) # Contributor: Ionut Biru # Contributor: Jakub Schmidtke pkgname=firefox-wayland-hg _pkgname=firefox pkgver=r542876+.4d8cee124c4e+ pkgrel=1 pkgdesc="Standalone web browser from mozilla.org - Wayland build of mozilla-unified hg" arch=(x86_64) license=(MPL GPL LGPL) url="https://www.mozilla.org/firefox/" depends=(gtk3 mozilla-common libxt startup-notification mime-types dbus-glib ffmpeg nss-hg ttf-font libpulse xorg-server-xwayland) makedepends=(unzip zip diffutils python2-setuptools yasm mesa imake inetutils xorg-server-xvfb autoconf2.13 rust mercurial clang llvm jack gtk2 python nodejs python2-psutil cbindgen nasm) optdepends=('networkmanager: Location detection via available WiFi networks' 'libnotify: Notification integration' 'pulseaudio: Audio support' 'speech-dispatcher: Text-to-Speech' 'hunspell-en_US: Spell checking, American English') options=(!emptydirs !makeflags !strip) _repo=https://hg.mozilla.org/mozilla-unified conflicts=('firefox') provides=('firefox') source=("hg+$_repo" 0001-Use-remoting-name-for-GDK-application-names.patch $_pkgname.desktop $_pkgname-symbolic.svg) sha256sums=('SKIP' 'ab07ab26617ff76fce68e07c66b8aa9b96c2d3e5b5517e51a3c3eac2edd88894' 'a9e5264257041c0b968425b5c97436ba48e8d294e1a0f02c59c35461ea245c33' '9a1a572dc88014882d54ba2d3079a1cf5b28fa03c5976ed2cb763c93dabbd797') # 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 pkgver() { cd mozilla-unified printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)" } prepare() { mkdir mozbuild cd mozilla-unified # https://bugzilla.mozilla.org/show_bug.cgi?id=1530052 patch -Np1 -i ../0001-Use-remoting-name-for-GDK-application-names.patch echo -n "$_google_api_key" >google-api-key echo -n "$_mozilla_api_key" >mozilla-api-key # # If you want to disable LTO/PGO (compile too long, it needs working # xorg-server-xvfb), delete the lines below beginning with # `ac_add_options --enable-lto' and ending with 'export RANLIB=llvm-ranlib` # cat >.mozconfig <