firefox: add mozilla api key
This commit is contained in:
parent
67bd7fb5b4
commit
d8e3bb5164
1 changed files with 7 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template build file for 'firefox'.
|
# Template build file for 'firefox'.
|
||||||
pkgname=firefox
|
pkgname=firefox
|
||||||
version=53.0.2
|
version=53.0.2
|
||||||
revision=1
|
revision=2
|
||||||
short_desc="Mozilla Firefox web browser"
|
short_desc="Mozilla Firefox web browser"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
homepage="https://www.mozilla.org/firefox/"
|
homepage="https://www.mozilla.org/firefox/"
|
||||||
|
@ -47,7 +47,11 @@ post_extract() {
|
||||||
|
|
||||||
# Google API key (see http://www.chromium.org/developers/how-tos/api-keys)
|
# Google API key (see http://www.chromium.org/developers/how-tos/api-keys)
|
||||||
# Note: This is for Void Linux use ONLY.
|
# Note: This is for Void Linux use ONLY.
|
||||||
echo -n "AIzaSyCIFdBA7eQP43R6kXRwTq7j6Mvj1ITze90" >google-api-key
|
echo -n "AIzaSyCIFdBA7eQP43R6kXRwTq7j6Mvj1ITze90" > google-api-key
|
||||||
|
|
||||||
|
# Mozilla API keys (see https://location.services.mozilla.com/api)
|
||||||
|
# Note: This is for Void Linux use ONLY.
|
||||||
|
echo -n "cd894504-7a2a-4263-abff-ff73ee89ffca" > mozilla-api-key
|
||||||
}
|
}
|
||||||
do_build() {
|
do_build() {
|
||||||
cp "${FILESDIR}/mozconfig" "${wrksrc}/.mozconfig"
|
cp "${FILESDIR}/mozconfig" "${wrksrc}/.mozconfig"
|
||||||
|
@ -89,6 +93,7 @@ do_build() {
|
||||||
|
|
||||||
cat <<! >>.mozconfig
|
cat <<! >>.mozconfig
|
||||||
ac_add_options --with-google-api-keyfile="${wrksrc}/google-api-key"
|
ac_add_options --with-google-api-keyfile="${wrksrc}/google-api-key"
|
||||||
|
ac_add_options --with-mozilla-api-keyfile="${wrksrc}/mozilla-api-key"
|
||||||
ac_add_options --enable-default-toolkit=cairo-gtk$(vopt_if gtk3 '3' '2')
|
ac_add_options --enable-default-toolkit=cairo-gtk$(vopt_if gtk3 '3' '2')
|
||||||
ac_add_options $(vopt_enable alsa)
|
ac_add_options $(vopt_enable alsa)
|
||||||
ac_add_options $(vopt_enable dbus)
|
ac_add_options $(vopt_enable dbus)
|
||||||
|
|
Loading…
Reference in a new issue