[arch-commits] Commit in geoclue2/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Sun Jun 7 17:51:31 UTC 2015
Date: Sunday, June 7, 2015 @ 19:51:31
Author: heftig
Revision: 240418
Add API keys
Modified:
geoclue2/trunk/PKGBUILD
----------+
PKGBUILD | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-06-07 17:12:34 UTC (rev 240417)
+++ PKGBUILD 2015-06-07 17:51:31 UTC (rev 240418)
@@ -4,7 +4,7 @@
pkgname=geoclue2
pkgver=2.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="Modular geoinformation service built on the D-Bus messaging system"
arch=(i686 x86_64)
url="http://geoclue.freedesktop.org/"
@@ -16,6 +16,25 @@
source=(http://freedesktop.org/software/geoclue/releases/${pkgver:0:3}/geoclue-$pkgver.tar.xz)
md5sums=('c1970e4ec6f2af6591a75294fc6fb4fa')
+# 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 at 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 at archlinux.org for
+# more information.
+_mozilla_api_key=16674381-f021-49de-8622-3021c5942aff
+
+prepare() {
+ cd geoclue-$pkgver
+ sed -e "s/key=geoclue/key=$_mozilla_api_key/" \
+ -e "s/key=YOUR_KEY/key=$_google_api_key/" \
+ -i data/geoclue.conf.in
+}
+
build() {
cd geoclue-$pkgver
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
More information about the arch-commits
mailing list