caio.co/de/arch/firefox

129.0.1-2: Remove our Mozilla API key

It got disabled. After the removal of the location service, the last
remaining function should be region detection, which still works with
the default key.

For: https://gitlab.archlinux.org/archlinux/packaging/packages/firefox/-/issues/9
Id
d2127a9424507a38cff13cce49403214a8190bed
Author
Jan Alexander Steffens (heftig)
Commit time
2024-08-13T23:01:05+02:00

Modified .SRCINFO

@@ -1,7 +1,7
pkgbase = firefox
pkgdesc = Fast, Private & Safe Web Browser
pkgver = 129.0.1
- pkgrel = 1
+ pkgrel = 2
url = https://www.mozilla.org/firefox/
arch = x86_64
license = MPL-2.0

Modified PKGBUILD

@@ -1,10 +1,10
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Ionut Biru <ibiru@archlinux.org>
# Contributor: Jakub Schmidtke <sjakub@gmail.com>

pkgname=firefox
pkgver=129.0.1
-pkgrel=1
+pkgrel=2
pkgdesc="Fast, Private & Safe Web Browser"
url="https://www.mozilla.org/firefox/"
arch=(x86_64)
@@ -115,12 +115,6
# 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=e05d56db0a694edc8b5aaebda3f2db6a
-
prepare() {
mkdir mozbuild
cd firefox-$pkgver
@@ -137,7 +131,6
patch -Np1 -i ../0004-Bug-1912663-Fix-some-build-issues-with-cbindgen-0.27.patch

echo -n "$_google_api_key" >google-api-key
- echo -n "$_mozilla_api_key" >mozilla-api-key

cat >../mozconfig <<END
ac_add_options --enable-application=browser
@@ -166,7 +159,6
# Keys
ac_add_options --with-google-location-service-api-keyfile=${PWD@Q}/google-api-key
ac_add_options --with-google-safebrowsing-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